Skip to main content
Glama

cfg_doctor

Performs a read-only preflight before import or commit, reporting secret-deny matches, oversized fields, and key issues with paste-ready secret_fields and ignore_fields snippets; writes nothing.

Instructions

Read-only preflight before import/commit: reports secret-deny matches, oversized fields, and key issues per collection, with paste-ready secret_fields / ignore_fields snippets. Writes nothing.

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

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
recordNoOptional collection:id to scope to one record; omit for all tracked records.
config_fileNoOmit: the server uses the .cfg.toml it started with. A different path is refused unless the server runs with CFGIT_MCP_ALLOW_CONFIG_OVERRIDE=1.
large_field_bytesNoByte threshold above which a field is flagged as oversized.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

A4/5.0
Behavior4/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 well: it explicitly declares read-only behavior and 'Writes nothing', and explains that the output includes paste-ready secret_fields / ignore_fields snippets. It omits any mention of permissions, environment coupling, or performance characteristics.

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?

Two compact sentences, front-loaded with the core purpose and closed by the safety guarantee. Every phrase adds information; nothing is redundant.

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?

An output schema exists, so return values need no explanation, and the description covers the tool's purpose and non-mutating nature. Given five optional parameters at full schema coverage, this is nearly complete, though a brief note on the relationship to import/commit workflows would close the remaining gap.

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%, so all five parameters are already documented at the schema level. The description only implies collection scoping via 'per collection' and adds no extra syntax or meaning beyond the structured fields, so the baseline 3 applies.

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?

States a specific verb and resource: a read-only preflight that reports secret-deny matches, oversized fields, and key issues per collection. It is distinguishable from cfg_import and cfg_commit by the 'before import/commit' framing, though no sibling is named explicitly.

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?

Gives clear context for use: run as a preflight before import or commit. It does not state when not to use it or contrast with alternatives such as cfg_fsck or cfg_diff, leaving some inference to the agent.

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