Skip to main content
Glama

kb_review_firm_edit

Idempotent

Record verdicts on code changes against firm requirements—keeps or changes—and review staged symbols to satisfy the commit gate.

Instructions

Record your verdict on a change to code that implements a current firm requirement: keeps (the code still does what it says) or changes. kibi check --staged blocks such a change until each edited symbol has a current keeps receipt. A receipt is your judgment, not the person's approval. staged:true reviews the code and requirement in the Git index, as the commit gate reads them. Side effects: writes .kb/firm-edit-reviews/ files; dryRun:true writes nothing.

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": {
      "reviews": "<reviews>"
    },
    "name": "kb_review_firm_edit"
  }
}

Input Schema

NameRequiredDescriptionDefault
dryRunNo
stagedNo
reviewsYes
workspaceRootNoOptional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's.

Output Schema

NameRequiredDescriptionDefault
dataYes
errorNo
statusYes
effectsYes
operationYes
diagnosticsYes
nextActionsYes
kibiProtocolYes
resultVersionYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.10

TDQS

A4.2/5.0
Behavior5/5

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

Beyond the annotations it discloses the concrete side effect (writes .kb/firm-edit-reviews/ files) and the exact escape hatch (dryRun:true writes nothing), which annotations alone do not convey even though readOnlyHint=false implies mutation. It also adds a semantic caveat the annotations cannot carry: the receipt is the agent's own judgment, not a human approval, which shapes how the verdict should be chosen.

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?

Purpose and gate rationale are front-loaded, then mode flags and side effects — a sensible order. The prose is dense with domain jargon ('current keeps receipt,' 'firm requirement') that a newcomer must parse, but no sentence is redundant.

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 a write tool with an output schema and idempotent semantics, the description covers why it exists, what it writes, and how the dry-run mode behaves. Minor gaps remain: nothing about behavior when a review targets a symbol with no current requirement, or what happens on partial batches, but these are edge cases rather than blocking omissions.

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 description coverage is only 25%, but the description compensates for the most consequential parameters: staged (Git index vs working tree) and dryRun (no writes). It also defines the verdict enum semantics ('keeps' = code still does what it says). It adds little about the reviews array's per-entry fields (requirementId pattern, requestQuote), which remain documented only by the schema.

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+resource: 'Record your verdict on a change to code that implements a current firm requirement,' and defines the two verdict values (keeps/changes) inline. It implicitly separates itself from the commit gate ('kibi check --staged blocks such a change until each edited symbol has a current keeps receipt'), but never names a sibling tool directly, so differentiation from kb_check or kb_record is left partly to inference.

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?

Gives a clear triggering condition: this is what unblocks a firm-edit change that kibi check --staged is refusing. It also clarifies the staged vs unstaged choice ('staged:true reviews the code and requirement in the Git index, as the commit gate reads them'). It does not state when NOT to use it, e.g. that it is not an approval mechanism, though 'A receipt is your judgment, not the person's approval' comes close.

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