Skip to main content
Glama
infra-agent-gateway
by jcortes

detect_drift

Read-only

Check whether live infrastructure for a workspace still matches the last applied plan and report changes made outside the gateway. Read-only: it reports drift but never fixes it.

Instructions

Check whether the real infrastructure for a workspace still matches the last applied plan. Read-only: reports what changed outside the gateway, never fixes it. To fix drift, call plan_change.

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": {
      "name": "<name>"
    },
    "name": "detect_drift"
  }
}

Input Schema

NameRequiredDescriptionDefault
nameYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A4.4/5.0
Behavior4/5

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

The readOnlyHint annotation already declares safety, and the description reinforces it with added substance: changes are detected 'outside the gateway' and the tool reports but never remediates. It does not describe the shape of the drift report or how much detail comes back, which is a modest gap given there is no output schema.

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 short sentences, front-loaded with what the tool does, then its read-only nature, then the routing hint. Every sentence carries distinct information and none repeats the title or name.

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 one-parameter read-only check with no output schema, the definition covers purpose, safety, and remediation routing adequately. The remaining shortfall is the unexplained 'name' argument and the absent hint about what a drift result contains.

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% and the description never addresses the single required 'name' parameter, so the pattern constraint (^[a-z][a-z0-9-]{2,30}$) and the fact that name is a workspace identifier go undocumented in prose. The phrase 'for a workspace' gives weak implicit linkage, but it does not compensate for the coverage gap.

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 uses a specific verb and resource: 'Check whether the real infrastructure for a workspace still matches the last applied plan.' That distinguishes drift detection from the plan/apply siblings, and it names plan_change explicitly so the agent can tell the two apart without opening a schema.

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

Usage Guidelines5/5

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

It states the condition for use (verify real infrastructure against the last applied plan), an explicit exclusion ('never fixes it'), and the alternative for the other intent ('To fix drift, call plan_change'). Nothing about when to reach for this versus a sibling is left to inference.

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