Skip to main content
Glama

cfg_branch_diff

Compare configuration records between two branches, such as main and feature, to identify record-level differences before merging or deploying changes.

Instructions

Compare a branch against another branch (or main) at the record level.

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": {
      "range": "<range>"
    },
    "name": "cfg_branch_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
rangeYesBranch comparison range as base..head, e.g. 'main..feature'.
authorNoAuthor attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required.
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 it discloses very little beyond the core action. It never states that the operation is read-only/non-mutating, says nothing about permissions, size limits, or how large record-level diffs are handled, and only implicitly conveys output granularity via "at the record level."

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 tight sentence that front-loads the action and scope with no filler, which is well suited to a low-complexity tool. The brevity borders on under-specification rather than being wasteful.

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?

The input schema is exhaustively documented and an output schema exists, so return values and parameter details need no prose. What is missing is contextual: no routing versus cfg_diff and no behavioral notes for a no-annotation tool, leaving an agent to infer both.

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 env, range, author, and config_file are already fully documented, including the base..head format and the config-override refusal rule. The description adds only the "record level" framing and no additional parameter meaning, 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?

"Compare a branch against another branch (or main) at the record level" gives a specific verb (compare), a specific resource (branches), and a granularity qualifier (record level). It does not, however, mention the closely named sibling cfg_diff, so an agent must still guess which diff tool is appropriate.

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 explicit when-to-use or when-not-to-use guidance and no named alternative (cfg_diff is the obvious competitor). Usage must be inferred entirely from the phrase "compare a branch against another branch," with no prerequisites or exclusions stated.

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