Skip to main content
Glama
knowledge-mcp

knowledge-mcp

by bmdy6

show_diff

Read-onlyIdempotent

Preview a version-checked local text replacement before writing, showing the diff so you can verify the unique match and avoid unintended edits.

Instructions

Preview a unique, version-checked local text replacement.

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>",
      "path": "<path>",
      "expected_text": "<expected_text>",
      "replacement": "<replacement>"
    },
    "name": "show_diff"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes
scopeYes
replacementYes
expected_textYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

C2.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description does add genuine behavioral context with "version-checked" and "unique" — implying the call fails if expected_text does not match current content or matches in more than one place — but it never states that failure mode explicitly.

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

Conciseness3/5

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

It is a single front-loaded sentence with no filler, which is good. But the compression is excessive for a four-parameter tool — the terseness comes at the cost of the missing information an agent needs.

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

Completeness2/5

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

With four required undocumented parameters, an unmentioned concurrency/mismatch failure mode, and a clear sibling (apply_change) left unaddressed, the definition does too little for its complexity. An output schema exists so return values need not be described, but the invocation semantics are incomplete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0% and all four parameters are required, so the description must carry the burden. It only obliquely hints at expected_text (version-checked) and replacement; the required "scope" parameter is left entirely unexplained, which is a serious gap for a mandatory argument.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

"Preview a unique, version-checked local text replacement" names a specific action (preview) and resource (local text replacement), so the general purpose is inferable. However, it never says the tool returns a diff/preview of proposed changes, and it does not differentiate itself from apply_change, which any agent will weigh against it.

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

Usage Guidelines2/5

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

"Preview" weakly implies use-before-mutating, but there is no explicit statement of when to call this instead of apply_change or validate_vault, and no stated preconditions. The agent must guess the workflow position of this tool.

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