Skip to main content
Glama

cfg_pr_merge

Merges open config pull requests through the shared action layer, using atomic batch merges for multi-record changes and leaving runtime unchanged when atomicity is unavailable.

Instructions

Merge an open PR through the shared action layer.

Multi-record PRs use the adapter batch-atomic merge path. If that guarantee
is unavailable, the envelope returns `atomicity_unavailable` and runtime is
left unchanged.

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": {
      "id": "<id>"
    },
    "name": "cfg_pr_merge"
  }
}

Input Schema

NameRequiredDescriptionDefault
idYesThe pull request id to merge.
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.
dry_runNoRun every merge check (stale, drift, validation) and return each record's change against live (state would_merge). Writes nothing.
messageNoHuman-readable commit/operation message.
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.
no_validateNoSkip the collection validator for an emergency write (recorded in history). Off by default.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.6.5

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description does useful work by disclosing the batch-atomic merge path and the failure mode ('atomicity_unavailable', runtime left unchanged). However, it omits permission/identity requirements, the emergency validation-skip behavior, and anything about the dry-run path, leaving meaningful behavioral gaps for a mutation 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?

Two short paragraphs, front-loaded with the action and followed by the one non-obvious behavioral caveat. No wasted sentences; only minor awkwardness from the line breaks and the unexplained term 'envelope'.

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 carries parameter detail. Still, for a no-annotation mutation tool the text should cover identity/permission expectations and the consequence of a partial batch failure beyond the single 'atomicity_unavailable' case.

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 coverage is 100%, so all seven parameters (including env, dry_run, config_file override refusal, no_validate) are already documented in the schema. The description adds no parameter-level 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?

States a specific verb and resource ('Merge an open PR') plus the mechanism ('through the shared action layer'), which distinguishes it from cfg_pr_close and cfg_pr_create. It does not name or position itself against alternatives explicitly, but the operation is unambiguous.

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

Usage Guidelines3/5

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

Implicitly scopes usage to open PRs and implies that merging is the terminal action, but gives no explicit when-to-use vs when-not guidance, no prerequisites (review/validation state), and no routing to siblings such as cfg_check_update or cfg_pr_close.

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