Skip to main content
Glama

Audit and preview

doctor
Read-only

Check memory drift since the last apply and preview the diff apply would write; read-only after init and defaults to the folder init recorded.

Instructions

Read-only, after init (refuses before it): the audit, drift since the last apply(), then the diff apply() would write. No target: the folder init recorded.

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": "doctor"
  }
}

Input Schema

NameRequiredDescriptionDefault
diffNodefault summary; full adds the unified diff
forceNopreview the re-apply plan even with no drift
budgetNotoken budget (default 60% of the file, at least 2000; a folder computes its own)
formatNodefault text
targetNofolder in the root; "." = this project. Omitted: the memory folder in loaded, else what init recorded

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, destructiveHint false, and openWorldHint false, so the safety profile is covered. The description adds real context beyond that: the init prerequisite and the refusal if unmet, plus the ordered composition of audit, drift, and prospective diff. It does not say what happens on an empty/uninitialized folder beyond refusing, but that is minor.

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?

A single dense sentence with the read-only guarantee and precondition front-loaded, then the output contents in execution order. It is telegraphic but every clause carries information; no filler.

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?

There is no output schema, and the description compensates by enumerating the three things returned in order, which is exactly the missing piece. With all parameters optional and fully documented in schema, plus annotations covering safety, an agent has everything needed to call this 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%, so every parameter including diff, force, budget, format, and target already carries its own documentation. The description only echoes the target default ('No target: the folder init recorded'), adding essentially nothing about diff modes, force, or budget semantics. Baseline 3 is appropriate when the schema does the heavy lifting.

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?

'Read-only ... the audit, drift since the last apply(), then the diff apply() would write' names the exact three payloads the tool returns, which is more precise than a generic 'preview'. It also situates itself relative to apply() and init, so an agent can place it in the workflow rather than guessing.

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?

'after init (refuses before it)' gives an explicit precondition and states the failure mode if it is violated. The implied usage, checking drift/diff before calling apply(), is readable from the sentence order, but the description never explicitly says to prefer this over apply() for a dry run.

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

Deploy Server

Other Tools