Skip to main content
Glama

Compare a DTAP chain

cs_compare_environments

Snapshot each environment in an ordered chain and compare adjacent pairs to detect configuration drift. Returns a report per pair and identifies the first stage where drift appears.

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. Changed2 schema fields changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
    • removedInput schema / properties / chain / items / additionalProperties
      Removed value: -false
  2. First observedv0.1.5

TDQS

A3.6/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does disclose meaningful behavior beyond structure: it writes snapshots to <dir>/<label> and reports to <dir>/reports (side effects with concrete locations), returns one report per adjacent pair, and surfaces the first stage where drift appears. It omits auth prerequisites (e.g. cs_login / MSAL clientId) and failure modes, which keeps it below 5.

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?

Three sentences, front-loaded: core action first, then the return shape, then artifact locations. Every sentence carries information and there is no filler. Not quite a 5 because it is functional prose rather than tightly optimized.

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?

For an 11-parameter tool with no annotations and no output schema, the description adequately covers the overall flow and the return shape, which compensates for the missing output schema. It is still incomplete on prerequisites (Dataverse access needs cs_login per the schema), the semantics of the boolean flags, and failure behavior, leaving notable gaps for a tool of this complexity.

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 mid-range (55%), so the schema handles roughly half the parameters. The description adds real meaning for two of them: 'chain' is explicitly ordered (adjacency defines the pairs compared) and 'label' drives the snapshot path under <dir>. However, the remaining booleans (failOnDrift, includeDiffs, strictVariables) and the dir/chain entries get no elucidation. A 3 is appropriate — partial compensation for 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 concrete verb and resource: snapshot every environment in an ordered chain and compare each adjacent pair, with the canonical DTAP example (DEV, TEST, ACC, PROD) making the scope unambiguous. It does not name or distinguish itself from close siblings like cs_check_drift, cs_compare_snapshots, or cs_snapshot_environment, so it stops short of a 5.

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 DTAP-chain framing implies the scenario (comparing a promotion chain for drift), but there is no explicit when-to-use, when-not-to-use, prerequisite, or named alternative. An agent must infer that cs_check_drift and cs_compare_snapshots are the other options rather than being told.

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