Skip to main content
Glama
microsoft-copilot-studio-metadata-mcp

microsoft-copilot-studio-metadata-mcp

by tdries

Query

query
Read-onlyIdempotent

Read rows from a Copilot Studio agent-related Dataverse table using OData filters, select, orderby, and top. Query bot, component, and link tables to inspect agent metadata; read-only.

Instructions

Read rows from one agent related table with an OData style query. Read only.

table: a table from describe_model (bot, botcomponent, a link table, a referenced table).
select: comma separated columns. Empty returns the key and the columns the model documents, without
  the large ones (data, configuration and the other JSON columns): name those when you need them.
filter: OData filter, e.g. "componenttype eq 16", "publishedon eq null",
  "contains(name,'hr') and modifiedon gt 2026-01-01T00:00:00Z", "_parentbotid_value eq <guid>".
  Lookup columns are written _<name>_value.
orderby: e.g. "modifiedon desc". top: rows to return, 1 to 500 (default 50).
Coded values come back with a <column>_label in the caller's language; describe_model has the
stable English meaning. For counts use aggregate; for one decoded agent use get_agent.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "table": "<table>"
    },
    "name": "query"
  }
}

Input Schema

NameRequiredDescriptionDefault
topNo
tableYes
filterNo
selectNo
orderbyNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, so the safety profile is covered; the description reinforces 'Read only' rather than contradicting it. It adds genuine behavioral detail beyond annotations: defaults and limits on top (1-500, default 50), what an empty select returns and which large columns are dropped, and that coded values come back with a localized <column>_label. Slightly lowered because it does not address pagination beyond 'top' or error behavior for invalid tables.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Front-loaded with purpose and read-only scope, then a per-parameter block; each line maps to a parameter and earns its place. Slightly dense and longer than strictly required, but there is no filler or repetition.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return values needn't be explained, yet the description still covers the one surprising return behavior (localized <column>_label vs. stable English meanings in describe_model). With five optional-ish parameters and zero schema descriptions, everything an agent needs to build a correct query is present.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden and does: table (source and examples), select (comma separated, empty semantics), filter (OData syntax with three concrete examples and the _<name>_value lookup convention), orderby ('modifiedon desc' example), and top (range and default). This compensates fully for the bare schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Read rows from one agent related table with an OData style query', plus a scope qualifier 'Read only' and 'one' table. It is immediately distinguishable from siblings it names (aggregate for counts, get_agent for a decoded agent).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives an explicit prerequisite ('a table from describe_model') and routes to alternatives by condition: 'For counts use aggregate; for one decoded agent use get_agent.' It also states the when-not for select: empty select omits large JSON columns, so name them when needed.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.