Skip to main content
Glama

check_drift

Detects semantic drift in governance definitions by scanning legislative definitions for staleness, expired hashes, outdated references, and inconsistencies to flag compliance risks early.

Instructions

Detect semantic drift in governance definitions.

Scans legislative definitions for staleness, expired hashes, outdated regulatory references, and semantic inconsistencies.

Args: definitions_dir: Path to the directory containing governance definitions. threshold_days: Days after which a definition is considered stale (default: 90). provider: LLM provider override.

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

Input Schema

NameRequiredDescriptionDefault
providerNo
threshold_daysNo
definitions_dirYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.4.2

TDQS

A3.5/5.0
Behavior3/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 describe what gets inspected (hashes, regulatory references, consistency). It never states whether the scan is read-only or writes anything to definitions_dir, nor that the provider parameter implies an LLM call with associated cost/latency/auth needs — a material omission for an unannotated tool.

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?

Front-loaded one-line purpose followed by a scannable list of detection targets and an Args block; nothing is padding. Minor cost from an awkwardly line-wrapped second sentence that reads as a docstring artifact.

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?

Return values are covered by the existing output schema, and all three parameters are explained, so the core is present. For an unannotated tool that appears to invoke an LLM, the missing mutation/safety and cost/credential context leaves an agent unable to judge side effects before calling.

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 0%, so the description must compensate, and it does: definitions_dir is identified as the root of governance definitions, threshold_days is given semantic meaning ("days after which a definition is considered stale"), and provider is explained as an LLM provider override — far more than the bare schema titles. Format expectations for definitions_dir and accepted provider values remain unstated.

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?

Specific verb and resource: "Detect semantic drift in governance definitions," elaborated with concrete detection targets (staleness, expired hashes, outdated regulatory references, semantic inconsistencies). It does not differentiate itself from adjacent siblings such as detect_conflicts or conformance_check, 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 enumerated check categories implicitly tell an agent when this is relevant (auditing a definitions directory for decay), but there is no explicit when-to-use, when-not-to-use, or routing against any of the eleven siblings. Usage must be inferred from the scan targets rather than stated.

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