Skip to main content
Glama

Get guidance drift

get-guidance-drift-tool
Read-onlyIdempotent

Has this repo's agent guidance file drifted from the repo it describes? A CLAUDE.md or AGENTS.md that lists the directories under app/Domain (or any other path) is making a claim that decays silently — the list was right when written, the code kept moving, and nothing fails when the two diverge. Agents read the stale list as truth, so a rotted guidance file is worse than none: it teaches the wrong shape of the codebase with full confidence.

For each connected repository this returns the guidance file found, when it last changed, and every directory whose listing has gone stale — how many entries the file documents, how many are actually there now, and examples of what is missing. Call it before trusting a guidance file, when onboarding an agent onto an unfamiliar repo, or when deciding whether a hand-maintained inventory should be replaced by a get-team-context-tool call.

Only ENUMERATIONS are flagged. A file that mentions a path in passing is referencing it, not claiming an inventory, and is never reported. A directory is flagged only when the file already names several of its children (so it is holding a list) and is missing several more. Repos with no guidance file, BitBucket repos, and unreadable repos report insufficient_data — never a false drift. Archived repositories are skipped. Use get-repo-readiness-tool for whether a guidance file exists at all; this tool judges whether the one that exists is still true.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get-guidance-drift-tool"
  }
}

Input Schema

NameRequiredDescriptionDefault
repositoryNoOptional "owner/name" (or bare repo name) to assess a single repository instead of every repository on the team.

Output Schema

NameRequiredDescriptionDefault
teamYesTeam name.
rollupYesTeam rollup: repositories_assessed, repositories_drifted, and undocumented_entries (the total number of directory entries no guidance file mentions).
repositoriesYesPer-repository drift: repository slug, guidance_file (CLAUDE.md/AGENTS.md), last_updated date and days_since_update, status (drifted|current|insufficient_data), drifted_directories (path, documented, present, undocumented, examples), and a recommendation. Most-drifted repositories first.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Beyond the readOnly/idempotent annotations, it discloses the detection rule (only enumerations with several documented children and several missing ones get flagged), the return contents (file found, last change, stale directories with documented vs. actual counts and examples), and the insufficient_data outcome for missing-file, BitBucket, and unreadable repos. That is unusually rich behavioral context for a read-only 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?

The core question is front-loaded and the paragraph order moves from purpose to output to rules to boundaries, which reads well. It is somewhat long, and lines like "a rotted guidance file is worse than none" are persuasive framing rather than operational information.

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

Completeness5/5

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

An output schema exists, so return-shape detail is not required, yet the description still summarizes what comes back. For a single-parameter, read-only analysis tool, every decision an agent needs — when to call, what counts as drift, what counts as insufficient data — is covered.

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 100% and the single `repository` parameter is fully documented in the schema as an optional owner/name scoping filter. The description implies a team-wide default with "For each connected repository this returns...", which is mildly corroborating but adds no new semantics.

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 opening question names a specific verb and resource: judging whether an agent guidance file (CLAUDE.md/AGENTS.md) has drifted from the repo it describes. It explicitly separates itself from the closest sibling, stating get-repo-readiness-tool answers whether a file exists while this tool judges whether the existing one is still true.

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 gives three concrete trigger conditions (before trusting a guidance file, onboarding an agent onto an unfamiliar repo, deciding whether to replace a hand-maintained inventory) and names the alternative tool for each adjacent need. It also states exclusions: non-enumerations are never flagged, archived repos are skipped.

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.

Resources