Skip to main content
Glama

check_drift

Compare what you report you built against a task's spec, the project's constraints and its upstream handoffs, using the same checker the dashboard shows. Returns a verdict (pass or fail), a per-requirement gap list, and — on a fail — a tightened spec to retry from plus a suggested next step. Records the result so it can be shown in the UI. Does not change the node's status.

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": {
      "project_id": "<project_id>",
      "node_id": "<node_id>",
      "summary": "<summary>",
      "files_touched": "<files_touched>"
    },
    "name": "check_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffNoOptional unified diff or change summary for a closer comparison.
node_idYesThe node ID the work belongs to.
summaryYesWhat you actually built, in your own words.
project_idYesThe project ID.
files_touchedYesThe files you created or changed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

With readOnlyHint=false, the description usefully explains the write: it records the result for the UI while explicitly not changing node status, which resolves the main ambiguity an agent would have about side effects. It also discloses the return payload (verdict, gap list, tightened spec, suggested next step). It does not address that the call is non-idempotent, i.e. repeated calls accumulate recorded results.

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?

Three sentences, front-loaded with the core action, then the return contract, then the side-effect boundary. Every clause carries information: the dashboard-checker note establishes trust in the verdict, and the status note prevents a wrong assumption.

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?

There is no output schema, and the description compensates by enumerating the return shape, including the fail-path artifacts. Combined with the explicit non-effect on node status, an agent has what it needs to call and interpret it. The only gap is repeated-call semantics for a non-idempotent recorder.

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 100%, so every parameter including the optional diff already carries its own description. The prose only loosely gestures at inputs ('what you report you built'), adding no format or content guidance beyond the schema, notably nothing about when supplying diff materially improves the comparison. Baseline 3 is appropriate.

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 names a specific verb and comparison set: it compares the reported work against the task spec, project constraints and upstream handoffs. That scope is unique among the listed siblings (none of add_constraint, mark_task_complete, get_node etc. do drift comparison), so an agent can pick it out without opening the schema.

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?

Usage context is clear from 'what you report you built' and the retry-spec return, implying it is called after doing work and before/around completion. The closing note that it does not change the node's status implicitly distinguishes it from mark_task_complete. It stops short of an explicit 'use this instead of X when Y' statement or any stated precondition (e.g. whether a prior summary must exist).

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.