Skip to main content
Glama

mechacut

text_patch

Find/replace edits on a text, applied in order, each verified: 'occurrences' is "one" (default: exact-uniqueness gate), "all" or an exact count. A non-unique rename fails loudly instead of guessing. Paid route (x402 from first call).

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": {
      "text": "<text>",
      "edits": "<edits>"
    },
    "name": "text_patch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe source text
editsYes[{find, replace, occurrences?}]

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the burden and does well: it discloses ordered application, per-edit verification, hard failure on non-unique matches, and that this is a paid route (x402 from first call). It does not say whether already-applied edits survive a later failure, nor what the response contains.

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?

Three compact sentences, front-loaded with the operation and its verification guarantee, then the failure mode, then the cost caveat. Dense but no filler; the quoting around 'one' is slightly awkward but functional.

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 two-parameter tool with no output schema and no annotations, it covers operation semantics, failure behavior, and payment model. The main gap is the return value and partial-failure semantics, which matter for a multi-edit tool.

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 coverage is 100%, so the baseline is 3, but the description adds genuine meaning beyond the schema's bare '[{find, replace, occurrences?}]' by defining the 'occurrences' values: 'one' (default), 'all', or an exact count. That enum-like semantics is not present in 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 and resource: ordered find/replace edits on a text, with each edit verified. The uniqueness-gate framing distinguishes it from a generic diff/patch tool, though no sibling (e.g. text_apply_diff, json_patch) is named to sharpen the boundary.

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?

Implies when to use it via the default exact-uniqueness gate and the 'fails loudly instead of guessing' behavior, but gives no explicit when-not or named alternative among the many text_* siblings. The usage condition is inferable rather than stated.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.