Skip to main content
Glama

cfg_show

Retrieve config record document at chosen ref as Extended JSON with types preserved for editing and committing back without type changes. Use the returned oid as expected_live_oid for =live commits.

Instructions

A record's document at a ref, as Extended JSON ({"$date": ...}, {"$numberDecimal": ...}, {"$oid": ...}) so it can be edited and sent back to cfg_commit unchanged in type. oid is that version's hash: pass it as cfg_commit's expected_live_oid when ref is =live.

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

Input Schema

NameRequiredDescriptionDefault
envNoEnvironment name from .cfg.toml (e.g. dev, prod). Selects the target database.dev
refNoWhich version: =HEAD (last recorded), =live (what the database has now), @<seq>, tag:<name>, or an oid prefix.=HEAD
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

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 burden and does disclose real behavior: output is type-preserving Extended JSON and oid is that version's hash, which functions as an optimistic-concurrency token for commits. It does not cover failure behavior for missing refs/records or the identity-enforcement implications beyond what the schema's author param already says.

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?

Two sentences, front-loaded with what is returned and why the format matters, followed by the oid handoff rule. The inline JSON type examples are dense but earn their place by clarifying the type-preservation guarantee.

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 and the input schema is fully documented, so the description only needs to add workflow and semantics — which it does. It lacks only guidance on selecting between this and other read-side siblings and on error conditions for a 5-parameter tool.

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 100%, so the baseline would be 3, but the description adds genuine meaning beyond the schema by defining oid as the version's hash and tying it to cfg_commit's expected_live_oid specifically when ref is =live — a relationship no individual parameter description captures.

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?

The description states a specific resource and scope: a record's document at a given ref, rendered as Extended JSON with explicit examples ({"$date": ...}, {"$numberDecimal": ...}). It is clear enough to distinguish from siblings like cfg_diff or cfg_log, and it names cfg_commit as the downstream consumer, though the action verb itself is only implied by the tool name.

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 makes the intended workflow explicit: read here so the document can be edited and sent back to cfg_commit unchanged in type, and it names the exact handoff (use oid as cfg_commit's expected_live_oid when ref is =live). It stops short of stating when to prefer this over siblings such as cfg_diff or cfg_log, so no exclusions are given.

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