Skip to content

A plugin marketplace for GitHub Copilot and other AI agents that provides Power Platform development plugins, including reusable skills, agents, and commands for building and deploying solutions.

Add Data Source and API descriptions to Canvas App planning step (#82)

McCall Saltzman215bf3269e40
diff --git a/plugins/canvas-apps/.claude-plugin/plugin.json b/plugins/canvas-apps/.claude-plugin/plugin.json
index 41c8a22c4..7fa3faa84 100644
--- a/plugins/canvas-apps/.claude-plugin/plugin.json
+++ b/plugins/canvas-apps/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "canvas-apps",
- "version": "1.0.3",
+ "version": "1.0.4",
"description": "Build Power Apps Canvas Apps using the Canvas Authoring MCP server.",
"author": {
"name": "Microsoft",
diff --git a/plugins/canvas-apps/agents/canvas-app-planner.md b/plugins/canvas-apps/agents/canvas-app-planner.md
index c3ed35e8a..5f5c03ae2 100644
--- a/plugins/canvas-apps/agents/canvas-app-planner.md
+++ b/plugins/canvas-apps/agents/canvas-app-planner.md
@@ -2,6 +2,7 @@
name: canvas-app-planner
description: >-
Plans and designs a Canvas App. Discovers available controls, APIs, and data sources;
+ calls describe_api for relevant connectors and get_data_source_schema for connected data sources;
designs the aesthetic direction and screen plan; presents plan for user approval via plan mode;
calls describe_control for all controls in the design; writes
App.pa.yaml and canvas-app-plan.md for canvas-screen-builder agents to consume.
@@ -19,6 +20,8 @@ tools:
- mcp__canvas-authoring__list_apis
- mcp__canvas-authoring__list_data_sources
- mcp__canvas-authoring__describe_control
+ - mcp__canvas-authoring__describe_api
+ - mcp__canvas-authoring__get_data_source_schema
---
# Canvas App Planner
@@ -56,6 +59,13 @@ After all three complete, summarize findings:
- Which controls are most relevant to the user's app requirements
- Which data sources (if any) should drive the app's data layer
+Then, based on the user's requirements, call the detail tools for resources that will be used:
+
+- `describe_api` — call for each connector that the app will use, to get its operations and parameters
+- `get_data_source_schema` — call for each data source that the app will use, to get its columns and Power Fx types
+
+These calls can be made in parallel. Collect the full output of each for embedding in the plan document.
+
## Step 3 — Create Task Tracking
Call `TaskCreate` once per task:
@@ -136,6 +146,22 @@ Use this structure:
- Data sources: [names or "none connected"]
- Connectors: [names or "none connected"]
+## Data Source Schemas
+[For each data source used in the app, embed the FULL output of get_data_source_schema]
+[Screen builders will reference column names and Power Fx types from here]
+[Omit entirely if no data sources are used]
+
+### [DataSourceName]
+[Full get_data_source_schema output]
+
+## API Details
+[For each connector used in the app, embed the FULL output of describe_api]
+[Screen builders will reference operation names and parameters from here]
+[Omit entirely if no connectors are used]
+
+### [ApiName]
+[Full describe_api output]
+
## Screens
| Screen | File | Purpose | Key Controls |
|--------|------|---------|--------------|
diff --git a/plugins/canvas-apps/agents/canvas-edit-planner.md b/plugins/canvas-apps/agents/canvas-edit-planner.md
index 906d5f7ea..dc10b55b8 100644
--- a/plugins/canvas-apps/agents/canvas-edit-planner.md
+++ b/plugins/canvas-apps/agents/canvas-edit-planner.md
@@ -2,9 +2,10 @@
name: canvas-edit-planner
description: >-
Plans edits to an existing Canvas App. Reads current .pa.yaml files to understand
- the existing app; discovers new controls or APIs only if needed; presents an edit plan
- for user approval via plan mode; gathers describe_control output for any new controls;
- writes canvas-edit-plan.md for canvas-screen-editor agents.
+ the existing app; discovers new controls or APIs only if needed; calls describe_api
+ for any connectors involved and get_data_source_schema for any data sources involved;
+ presents an edit plan for user approval via plan mode; gathers describe_control output
+ for any new controls; writes canvas-edit-plan.md for canvas-screen-editor agents.
Called by edit-canvas-app for complex edits — not invoked directly by users.
color: orange
tools:
@@ -19,6 +20,8 @@ tools:
- mcp__canvas-authoring__list_apis
- mcp__canvas-authoring__list_data_sources
- mcp__canvas-authoring__describe_control
+ - mcp__canvas-authoring__describe_api
+ - mcp__canvas-authoring__get_data_source_schema
---
# Canvas Edit Planner
@@ -64,7 +67,15 @@ app, call the relevant discovery tools:
- `list_apis` — if new connectors are needed
- `list_data_sources` — if new data sources are needed
-Skip discovery calls for edits that only modify existing controls, properties, or formulas.
+Skip list discovery calls for edits that only modify existing controls, properties, or formulas.
+
+Regardless of whether list discovery is needed, call the detail tools for any APIs or data
+sources that are involved in the edit (whether existing or new):
+
+- `describe_api` — call for each connector referenced by the edit, to get its operations and parameters
+- `get_data_source_schema` — call for each data source referenced by the edit, to get its columns and Power Fx types
+
+These calls can be made in parallel with any list discovery calls.
## Step 4 — Create Task Tracking
@@ -163,6 +174,22 @@ Use this structure:
| [Name] | [Name].pa.yaml | [description] |
(omit this section if no new screens)
+## Data Source Schemas
+[For each data source involved in the edit, embed the FULL output of get_data_source_schema]
+[Editors will reference column names and Power Fx types from here]
+[Omit entirely if no data sources are involved]
+
+### [DataSourceName]
+[Full get_data_source_schema output]
+
+## API Details
+[For each connector involved in the edit, embed the FULL output of describe_api]
+[Editors will reference operation names and parameters from here]
+[Omit entirely if no connectors are involved]
+
+### [ApiName]
+[Full describe_api output]
+
## Control Definitions
[For each NEW control type not already in the existing app, embed the FULL output of describe_control]
[Editors will reference property names from here — do not summarize or abbreviate]