/mcp-m365-copilot:mcp-create-adaptive-cardsfrom mcp-m365-copilot
Creates Adaptive Card response templates and response_semantics for MCP-based API plugins in Microsoft 365 Copilot. Maps API data to visual cards using JSONPath, citation mappings, and responsive single-column layouts.
Ships in mcp-m365-copilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Adds Adaptive Card response templates to MCP-based API plugins so Microsoft 365 Copilot can present API data visually with citation mappings, template selection, conditional rendering, and responsive single-column layouts.
Gather these details before producing JSON:
View Details.Read references/card-reference-examples.md for card type schemas, element details, complete JSON, and common snippets.
| Property | Purpose | Example |
|---|---|---|
data_path | JSONPath query indicating where data resides in the API response. | "data_path": "$", "data_path": "$.results", "data_path": "$.data.items" |
properties.title | Citation title mapping. | "title": "$.name" |
properties.subtitle | Citation subtitle mapping. | "subtitle": "$.description" |
properties.url | Citation URL mapping. | "url": "$.link" |
template_selector | Property on each item that selects which template to use. | "template_selector": "$.displayTemplate" |
{
"type": "TextBlock",
"text": "${if(field, field, 'N/A')}"
}
{
"type": "TextBlock",
"text": "${formatNumber(amount, 2)}"
}
{
"type": "Container",
"$data": "${$root}",
"items": []
}
{
"type": "Image",
"url": "${imageUrl}",
"$when": "${imageUrl != null}"
}
Use conditional rendering for missing fields, number formatting for amounts, $data to bind arrays or break to $root, and $when to hide optional images or sections.
| Area | Rule |
|---|---|
| Layout | Prefer single-column layouts for narrow Microsoft 365 Copilot viewports. |
| Width | Avoid fixed widths; use auto or stretch except for small icons and avatars. |
| Text | Set "wrap": true for user-visible text. |
| Image plus text | Avoid placing text and images in the same row except small icons or avatars. |
| Hubs | Validate in Teams desktop, Teams mobile, Word, PowerPoint, and contract/expand UI widths when available. |
| Actions | Keep actions sparse and map URLs through trusted response fields. |
data_path.properties for title, subtitle, and URL.template_selector.references/card-reference-examples.md: Adaptive Card schema patterns, card examples, element details, and reusable JSON snippets.This skill replaces legacy api-plugin response-templates prompt material with portable Skill instructions. Do not copy old prompt tool IDs such as search/codebase or edit/editFiles into skill frontmatter. Avoid multi-column layouts except when tested; fixed widths are acceptable only for icons/avatars.
### MCP Adaptive Card result
**Status:** template ready | needs API details | blocked
**Data path:** `<JSONPath>`
**Template mode:** static | dynamic
**response_semantics**
```json
{
"data_path": "$.results",
"properties": {
"title": "$.name",
"subtitle": "$.description",
"url": "$.link"
},
"template_selector": "$.displayTemplate"
}
```
**Adaptive Card template**
```json
{
"type": "AdaptiveCard",
"$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.5",
"body": [
{
"type": "TextBlock",
"text": "${if(name, name, 'N/A')}",
"wrap": true
}
]
}
```
**Validation scenarios**
- Same-type item: pass | fail
- Dynamic template item: pass | fail | not applicable
- Missing optional fields: pass | fail
- Narrow viewport: pass | fail
- Teams, Word, PowerPoint: pass | fail | not tested
data_path points to the actual item collection or response root.properties.title, properties.subtitle, and properties.url map real response fields for citations.${if(...)} or $when instead of rendering broken blanks.${formatNumber(amount, 2)} or another deliberate format."wrap": true.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
adaptive-cards, microsoft-365-copilot, mcp, response-templates, jsonpath
3 skills in this plugin
/mcp-create-declarative-agentCreate a Microsoft 365 Copilot declarative agent backed by a Model Context Protocol server. Use when asked to scaffold or configure an MCP-based declarative agent, choose imported tools, configure OAuth 2.0 or SSO, set response semantics, or produce appPackage files for Microsoft 365 Agents Toolkit./mcp-deploy-manage-agentsGuide deployment, governance, assignment, lifecycle, approval, blocking, monitoring, and distribution for MCP-based declarative agents in Microsoft 365 admin center. Use when asked to publish, deploy, approve, block, assign, govern, monitor, troubleshoot, or manage Microsoft 365 agents, shared agents, Microsoft agents, external partner agents, or frontier agents.npx claudepluginhub gbb-acelerators/awesome-harness-primitives --plugin mcp-m365-copilotOther plugins' skills for the same job