Skip to main content
Glama

Detect portal changes since the last sync

cs_check_drift

Find edits made directly in Copilot Studio after the last workspace clone, pull, or push. Quick mode compares Dataverse rows; full mode diffs files to classify remote changes before syncing.

Instructions

Find changes made directly in Copilot Studio after the workspace was last cloned, pulled or pushed. mode 'quick' (default) reads the agent's component rows from Dataverse and compares them with the sync stamp: which topics, tools and knowledge sources changed, by whom, when, whether the agent settings changed and whether there are unpublished changes; needs a cached cs_login, no pac. mode 'full' runs pac copilot clone into a temporary folder and classifies every file as local-modified, remote-modified or both (conflict) against the stamp, with unified diffs. Both are read-only. Resolve drift with cs_pull (three-way merge), then commit.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modeNo
clientIdNoEntra app (client) id for MSAL. Defaults to CPS_CLIENT_ID, then the first-party VS Code id.
tenantIdNoEntra tenant id. Defaults to the workspace sync metadata, then CPS_TENANT_ID.
keepCloneNofull: keep the temporary clone and return its path
workspaceNoPath to (or inside) the agent workspace. Defaults to CPS_WORKSPACE or the current directory.
includeDiffsNofull: include unified diffs (default true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changedv0.1.8
    • removedInput schema / additionalProperties
      Removed value: -false
  2. First observedv0.1.5

TDQS

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does so well: it states both modes are read-only, explains that quick reads Dataverse component rows and needs a cached cs_login without pac, and describes full mode running pac copilot clone into a temporary folder with file classification and diffs. It stops short of detailing cleanup behavior for the temporary clone or broader permission requirements, so it is strong but not exhaustive.

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 dense and front-loads the core purpose before unpacking the two modes. Every sentence contributes operational detail, though the long semicolon-heavy midsection could be slightly easier to scan.

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

Completeness4/5

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

For a complex tool with no annotations and no output schema, the description covers the essential context: purpose, mode differences, authentication prerequisites, read-only behavior, and the follow-up resolution path. It reasonably describes what quick reports and what full classifies, though it leaves some parameter defaults and exact return-shape details to the schema.

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

Parameters4/5

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

Schema coverage is high at 83%, so the schema already documents most parameters. The description nevertheless adds meaningful semantics for the critical mode parameter, explaining what quick and full actually do, what quick reads, what full produces, and the read-only nature of both.

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?

The description gives a specific verb and resource: finding changes made directly in Copilot Studio after the workspace was last cloned, pulled, or pushed. It distinguishes the tool from resolution work by naming cs_pull and from authentication setup by referencing cs_login, so an agent can identify its role without checking siblings.

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?

It clearly explains when to run the check and how to act on results: resolve drift with cs_pull, then commit. It also distinguishes quick versus full modes and their prerequisites, though it does not explicitly state when not to use the tool or give a hard rule for choosing full over quick beyond the operational differences.

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