Skip to main content
Glama

Compare a DTAP chain

cs_compare_environments

Detect drift between adjacent Copilot Studio environments by snapshotting every stage in an ordered chain and returning per-pair reports with the first stage where differences appear.

Instructions

Snapshot every environment in an ordered chain (e.g. DEV, TEST, ACC, PROD) and compare each adjacent pair. Returns one report per pair plus the first stage where drift appears. Snapshots go to /, reports to /reports.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dirYes
chainYes
agentsNoAgent schema names or ids to clone; default: every agent pac copilot list returns
clientIdNoEntra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id.
solutionNoSolution unique name to record version/managed state for
tenantIdNoEntra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID.
maxAgentsNoDefault 20
failOnDriftNo
includeDiffsNo
strictVariablesNo
includeDataverseNoDefault true: flows, connection references, environment variables and publish state via Dataverse (needs cs_login; skipped silently otherwise)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.5

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are provided, so the description carries the full burden of disclosing behavioral traits. It states that snapshots are written to <dir>/<label> and reports to <dir>/reports, which implies file creation, but it does not mention whether the operation is read-only or mutating, whether login is required, whether drift detection has side effects, or how failures are handled. The description also omits the impact of parameters like failOnDrift or includeDiffs. This is insufficient for a tool with 11 parameters and no annotation safety profile.

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?

The description is two sentences with minimal waste. It front-loads the core action (snapshot and compare) and includes the output destinations. It is appropriately sized for the tool's complexity, though the second sentence on output could be clearer. Overall, it is concise and well-structured.

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

Completeness2/5

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

Given the tool has 11 parameters, 2 required, no output schema, and no annotations, the description is too sparse. It explains the high-level flow but does not cover any of the optional parameters' semantics, nor does it describe the return format beyond 'one report per pair plus the first stage where drift appears'. It doesn't mention prerequisites like login (except indirectly via includeDataverse's schema note), or edge cases like empty chains or unreachable environments. The description is not complete enough for an agent to safely invoke the tool with all defaults or to interpret results.

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 coverage is 55%, so some parameters are documented in the schema (e.g., agents, clientId, tenantId, includeDataverse). The description adds meaning for chain and dir, clarifying that the chain is ordered and that output goes to specific locations. However, many parameters such as maxAgents, failOnDrift, includeDiffs, strictVariables, solution, and others are not described in the schema, and the description does not compensate. The description adds some value beyond the schema but falls short of bridging the coverage gap.

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?

The description states a clear verb and resource: it snapshots environments in a chain and compares adjacent pairs. It also mentions the output (reports) and the first drift stage. It is distinct from siblings like cs_snapshot_environment (single snapshot) and cs_compare_snapshots (compare two snapshots), but it does not explicitly name those alternatives. The purpose is specific enough for an agent to understand the action, though sibling differentiation is implied rather than stated.

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

Usage Guidelines3/5

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

The description gives a concrete use case (comparing an ordered DTAP chain) and explains the output. However, it does not explicitly state when to use this tool versus alternatives such as cs_check_drift or cs_compare_snapshots. The guidance is implied by the nature of the tool (chain comparison) but lacks explicit exclusions or routing to siblings.

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

Deploy Server

Other Tools