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

microsoft-copilot-studio-metadata-mcp

by tdries

Aggregate

aggregate
Read-onlyIdempotent

Count rows in an agent-related table grouped by one or two columns to answer "how many per..." questions without returning rows. Apply filters to focus results on specific metadata.

Instructions

Count rows of an agent related table, grouped by one or two columns.

by: one or two comma separated columns, e.g. "componenttype", "_ownerid_value",
  "authenticationmode,accesscontrolpolicy". filter: same syntax as query.
Answers "how many per ..." questions without returning the rows. Groups carry the English
meaning of coded values when the model knows it, else the label Dataverse returned.

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>",
      "by": "<by>"
    },
    "name": "aggregate"
  }
}

Input Schema

NameRequiredDescriptionDefault
byYes
topNo
tableYes
filterNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, open-world. The description adds useful behavioral detail beyond them: no rows are returned, and group keys carry English meaning for coded values when the model knows them, otherwise the Dataverse label. It does not discuss result limits or cost of large groupings.

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

Conciseness5/5

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

Purpose is front-loaded in the first sentence, parameter notes follow, and no sentence is padding. The labeled fragments ('by:', 'filter:') make it scannable despite the inline newlines.

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

Completeness3/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 need little explanation, and the description adds a nice note on group label semantics. But with all four parameters undocumented in the schema, the undefined 'top' and 'table' semantics leave real ambiguity about call behavior.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must compensate. It does explain 'by' (one or two comma-separated columns, with examples) and 'filter' (same syntax as query), but leaves 'table' and especially 'top' (default 50) undefined — it is unclear whether top limits groups or rows.

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

Purpose4/5

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

States a specific verb and resource ('Count rows of an agent related table, grouped by one or two columns') and frames the output shape ('how many per ...'). 'without returning the rows' implicitly separates it from the row-returning query sibling, though that sibling is never named as the alternative.

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

Usage Guidelines4/5

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

Gives a clear use-case trigger ('Answers "how many per ..." questions') and implicitly rules out row retrieval. It stops short of explicit when-not guidance or a named alternative for retrieving actual rows.

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