Skip to main content
Glama

kb_prepare_impact_review

Read-onlyIdempotent

Prepare impact-review authoring inputs from staged snapshots or selected Git commits when changed files need review, returning reviewer schemas and an unauthored template.

Instructions

Prepare complete content-bound impact-review authoring inputs from the current staged snapshot or explicitly selected immutable Git commits. Use it when kb_check reports that changed files need an impact review; it does not plan KB changes. Returns strict reviewer schemas and an unauthored template; it does not decide, approve, sign, stage, or prove the review.

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": {
      "scope": "<scope>"
    },
    "name": "kb_prepare_impact_review"
  }
}

Input Schema

NameRequiredDescriptionDefault
scopeYes{"kind":"staged"} for the staged snapshot, or {"kind":"diff","baseCommit","headCommit"} with full hashes.
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. Changed17 schema fields changedv0.1.10
    • changedInput schema / properties / scope / description
      Previous value: -"What to review: {\"kind\":\"staged\"} for the staged snapshot, or {\"kind\":\"diff\",\"baseCommit\":\"<sha>\",\"headCommit\":\"<sha>\"} with full commit hashes."New value: +"{\"kind\":\"staged\"} for the staged snapshot, or {\"kind\":\"diff\",\"baseCommit\",\"headCommit\"} with full hashes."
    • changedInput schema / properties / workspaceRoot / description
      Previous value: -"Optional absolute path of the workspace this call is about when it differs from the one the server started in, for example the git worktree you are working in. The server answers from that workspace's knowledge base when it is a worktree of the same repository or lies under the client's MCP roots; otherwise it answers from its own workspace and adds a workspace_mismatch diagnostic. Host hooks fill this in automatically where available."New value: +"Optional absolute path of the workspace this call is about, such as your git worktree, when it is not the server's."
    • removedOutput schema / properties / data / properties / snapshot / properties / headTreeSource / anyOf
      Removed value: -[
      -  {
      -    "const": "index",
      -    "type": "string"
      -  },
      -  {
      -    "const": "commit",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / data / properties / snapshot / properties / headTreeSource / enum
      Added value: +[
      +  "index",
      +  "commit"
      +]
    • addedOutput schema / properties / data / properties / snapshot / properties / headTreeSource / type
      Added value: +"string"
    • removedOutput schema / properties / data / properties / snapshot / properties / kind / anyOf
      Removed value: -[
      -  {
      -    "const": "staged",
      -    "type": "string"
      -  },
      -  {
      -    "const": "diff",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / data / properties / snapshot / properties / kind / enum
      Added value: +[
      +  "staged",
      +  "diff"
      +]
    • addedOutput schema / properties / data / properties / snapshot / properties / kind / type
      Added value: +"string"
    • removedOutput schema / properties / diagnostics / items / properties / severity / anyOf
      Removed value: -[
      -  {
      -    "const": "info",
      -    "type": "string"
      -  },
      -  {
      -    "const": "warning",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / diagnostics / items / properties / severity / enum
      Added value: +[
      +  "info",
      +  "warning",
      +  "error"
      +]
    • addedOutput schema / properties / diagnostics / items / properties / severity / type
      Added value: +"string"
    • removedOutput schema / properties / effects / items / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "completed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "failed",
      -    "type": "string"
      -  },
      -  {
      -    "const": "not_applicable",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / effects / items / properties / status / enum
      Added value: +[
      +  "completed",
      +  "failed",
      +  "not_applicable"
      +]
    • addedOutput schema / properties / effects / items / properties / status / type
      Added value: +"string"
    • removedOutput schema / properties / status / anyOf
      Removed value: -[
      -  {
      -    "const": "success",
      -    "type": "string"
      -  },
      -  {
      -    "const": "committed_with_repairs",
      -    "type": "string"
      -  },
      -  {
      -    "const": "error",
      -    "type": "string"
      -  }
      -]
    • addedOutput schema / properties / status / enum
      Added value: +[
      +  "success",
      +  "committed_with_repairs",
      +  "error"
      +]
    • addedOutput schema / properties / status / type
      Added value: +"string"
  2. Changed1 schema field changedv0.1.3
    • addedInput schema / properties / scope / description
      Added value: +"What to review: {\"kind\":\"staged\"} for the staged snapshot, or {\"kind\":\"diff\",\"baseCommit\":\"<sha>\",\"headCommit\":\"<sha>\"} with full commit hashes."
  3. First observedv0.1.0

TDQS

A4.7/5.0
Behavior5/5

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

Beyond the readOnlyHint/idempotentHint/destructiveHint=false annotations, the description discloses what the call produces ('strict reviewer schemas and an unauthored template') and five negative guarantees about review authority. That is substantive behavioral context that the annotations alone do not convey, and nothing in it conflicts with the readOnly declaration.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three sentences, front-loaded with what is produced and from which inputs, then the usage trigger, then the return contract and limits. No filler, and every clause carries information the agent needs.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, yet the description still summarizes the return contract and the boundaries of the tool's authority, which is more than enough for a two-parameter read-only preparation tool. Nothing an agent needs to invoke it correctly is missing.

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 description coverage is 100%, and the schema already spells out the {"kind":"staged"} vs {"kind":"diff",baseCommit,headCommit} shape and the workspaceRoot meaning. The description only reinforces the staged-vs-immutable-commit distinction and the word 'explicitly', without adding format or selection rules, so the baseline of 3 applies.

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 names a specific verb+resource ('Prepare complete content-bound impact-review authoring inputs') and bounds the input scope to the staged snapshot or explicitly selected immutable Git commits. It also explicitly contrasts itself with kb_check and with planning tools ('does not plan KB changes'), so an agent can identify the tool 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 Guidelines5/5

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

It states the triggering condition directly: use it when kb_check reports that changed files need an impact review. It also gives an exclusion ('does not plan KB changes') and enumerates downstream actions it does not perform (decide, approve, sign, stage, prove), which tells the agent when to hand off elsewhere.

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