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
| Name | Required | Description | Default |
|---|---|---|---|
| a | No | Left ref (default =HEAD). Refs: =HEAD, =live, @<seq>, or an oid prefix. | =HEAD |
| b | No | Right ref (default =live). Refs: =HEAD, =live, @<seq>, or an oid prefix. | =live |
| env | No | Environment name from .cfg.toml (e.g. dev, prod). Selects the target database. | dev |
| author | No | Author attribution hint. Ignored/rejected in authenticated/enforced identity modes where a verified identity is required. | |
| record | Yes | Record address as collection:id, e.g. agent_configs:refund_resolution. | |
| config_file | No | Omit: 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
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||