Skip to main content
Glama

cfg_diff

Compare a config record between two refs and show field-level changes to review before committing, rolling back, or detecting drift.

Instructions

Show the field-level diff of a record between two refs.

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": {
      "record": "<record>"
    },
    "name": "cfg_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
aNoLeft ref (default =HEAD). Refs: =HEAD, =live, @<seq>, or an oid prefix.=HEAD
bNoRight ref (default =live). Refs: =HEAD, =live, @<seq>, or an oid prefix.=live
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.
recordYesRecord address as collection:id, e.g. agent_configs:refund_resolution.
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.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden and delivers only a single sentence. It implies a non-destructive read ("show the diff") but never says so explicitly, and says nothing about what happens with invalid refs, missing records, or how the diff is bounded. The one genuine disclosure beyond the schema is the "field-level" granularity.

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?

One front-loaded sentence with zero filler and the resource stated before the comparison scope. It is efficient, though its brevity is as much under-specification as concision for a six-parameter tool.

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?

An output schema exists, so return values need not be explained, and the schema fully specifies the parameters. What remains uncovered is the behavioral surface: read-only guarantees, error conditions with bad refs, and differentiation from cfg_branch_diff.

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 every parameter including the ref syntax, env selection, and config_file override rules is already documented in structured data. The description adds nothing about the record address format or ref semantics, so it sits at the baseline.

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: "Show the field-level diff of a record between two refs." The phrase "field-level" and "a record" scope it narrowly, which separates it in spirit from a branch-level diff, but it never names the sibling cfg_branch_diff, so an agent must infer the boundary from the sibling's name alone.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no alternative is named. The sentence implies the tool is for comparing a record across two refs, but an agent gets no help choosing between this and cfg_branch_diff, cfg_log, or cfg_show, nor any stated prerequisites.

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