Skip to main content
Glama

clean_text

Removes only the finding IDs you approve from text previously checked with inspect_text, returning a cleaned copy without overwriting the original source.

Instructions

Remove only the finding_ids a user explicitly selected from inspect_text on the same unmodified source. Returns cleaned text, never overwrites anything. May alter emoji or right-to-left writing if an important character is selected.

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>",
      "finding_ids": "<finding_ids>"
    },
    "name": "clean_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesExact original text supplied to inspect_text.
finding_idsYesSpecific IDs returned by inspect_text that the user approved for removal.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.4.0

TDQS

A3.9/5.0
Behavior3/5

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

Adds real context beyond the annotations: the operation never overwrites the source, and it warns that selecting an important character may damage emoji or right-to-left writing. However, readOnlyHint=false paired with a 'never overwrites anything' claim is left unexplained, and nothing is said about what happens if a finding_id does not exist in the supplied text.

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 short sentences, front-loaded with the scope constraint before the return behavior and the caveat. No filler; minor cost is that the caveat could be tighter.

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 full schema coverage, it covers purpose, precondition, return shape, and a destructive-edge caveat. Missing only failure-mode behavior (mismatched text or unknown IDs), which matters given no output schema.

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 coverage is 100%, so both parameters are already documented, including the 150-item cap. The description reinforces the semantics (text must be the exact original, IDs must be user-approved) but adds no format or edge-case detail beyond that baseline.

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?

Names a specific verb (remove) and resource (finding_ids), states the source dependency on inspect_text, and states the result (cleaned text). An agent can distinguish it from inspect_text without opening either schema.

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 precondition: only IDs a user explicitly approved, and only from the same unmodified source produced by inspect_text. It does not explicitly say what to do when the text has changed (e.g. re-run inspect_text), so the alternative is implied rather than stated.

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

Deploy Server

Other Tools