Skip to main content
Glama

Get Guidance Drift Tool

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 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 for whether a guidance file exists at all; this tool judges whether the one that exists is still true.

Input Schema

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

Output Schema

TableJSON 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.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and idempotentHint, but the description adds substantial behavioral context: only enumerations are flagged (passing mentions never reported), insufficient_data is returned for missing/BitBucket/unreadable repos, archived repos are skipped, and false drift is avoided. It stops short of disclosing return format or performance characteristics, but the safety and edge-case behavior is rich.

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 lead sentence is a direct question that front-loads purpose, and each subsequent paragraph adds distinct value (rationale, return shape, scope rules, sibling differentiation). It is longer than strictly necessary, with some reinforcement of the 'rotted guidance is worse than none' point, but no genuinely wasted sentences.

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 values need no explanation. Given the high compleixity of a drift-analysis tool, the description still covers scope exclusions, the enumeration-only rule, and the empty-file result, leaving nothing an agent needs in order to invoke it correctly.

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% and the single optional 'repository' parameter is fully documented there, so the baseline applies. The description adds only the default scope ('for each connected repository'), which mildly reinforces the all-repos default but does not extend syntax or meaning beyond the schema.

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?

States a precise verb+resource: judging whether a repo's agent guidance file has drifted from the code it describes, with a concrete example (directories under app/Domain). It explicitly distinguishes itself from the nearest sibling, get-repo-readiness, so an agent can route between the two without opening either 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?

Gives explicit trigger conditions — before trusting a guidance file, when onboarding an agent, or when deciding to replace a hand-maintained inventory — and names both the alternative (get-repo-readiness) and the alternative call (get-team-context) with the condition that selects each.

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