Skip to main content
Glama

cfg_impact

Assess how a configuration record change affects paths, risk, references, and code locations; compare stored refs or test a proposed document before writing.

Instructions

What a change touches: changed paths, risk, other records that mention this id, and file:line places code reads it (collection code_refs). Default compares =HEAD to =live (drift). Pass doc_json (a proposed full document) to see the impact of a change BEFORE writing it. use_llm adds provider narration (opt-in).

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_impact"
  }
}

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
modelNoOverride the provider model id.
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.
againstNoScope narration to these related records (collection:id, repeatable or comma-separated) instead of the whole system.
use_llmNoAdd LLM narration of the change (sends the redacted diff to the configured provider; needs its API key and [connections].share_with_ai).
doc_jsonNoA proposed full document you have not written yet. The report then compares =live to it (impact before the write). Omit to compare two stored refs.
providerNoOverride the AI provider (claude, openai, gemini); defaults to [connections].ai_provider.
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

A4.3/5.0
Behavior4/5

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

With no annotations, the description carries the load and does well: it discloses the two comparison modes (two stored refs vs. live-vs-proposed-document), that doc_json enables pre-write evaluation, and that use_llm is an opt-in side-effecting path. It does not explicitly state that the tool is strictly read-only or describe cost/latency of the LLM path, leaving a modest gap for an unannotated tool.

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?

Front-loaded with the payload enumeration, then modes, then the opt-in flag — a logical order with no filler sentences. Minor density issues in 'file:line places code reads it (collection code_refs)' cost a bit of readability, but nothing is wasted.

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?

For an 11-parameter tool with a full output schema, the description covers the two behaviors an agent must choose between (stored-ref comparison vs. doc_json pre-write) and the optional narration path. Remaining parameters (env, against, provider, config_file, author) are thoroughly documented in the schema, so the description need not repeat them.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is already 100%, so the baseline is 3, but the description adds real meaning: it explains what the default a/b refs represent (drift between =HEAD and =live) and clarifies doc_json as a proposed, unwritten document that replaces the b side. That semantic framing goes beyond the field-level schema text.

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?

The description opens with a specific framing, 'What a change touches,' and enumerates the report contents: changed paths, risk, cross-record mentions, and file:line code read sites (code_refs). This is distinguishable from a plain diff sibling like cfg_diff because it advertises risk analysis and code-reference mapping, not just path differences. An agent knows what it gets back without opening the schema.

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?

It states the default mode explicitly ('Default compares =HEAD to =live (drift)') and gives a clear conditional for the alternate mode ('Pass doc_json ... to see the impact of a change BEFORE writing it'). It also flags use_llm as opt-in. It stops short of naming a sibling to use instead for plain diffs, so the guidance is strong but not fully routing.

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