Skip to main content
Glama

mechacut

text_redact

Mask before you post: secrets become [APIKEY_1], [VISA_1]... numbered by position, so the same text always gets the same mask. The mapping is NOT returned on purpose — a redaction endpoint that echoes secrets is a leak with extra steps. Free.

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

Input Schema

NameRequiredDescriptionDefault
textYes
mask_tagNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.5/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does real work: it discloses that masks are position-numbered and deterministic ('the same text always gets the same mask') and explicitly states the mapping is not returned, with a security rationale. It is silent on which secret patterns are detected beyond the two examples, size limits, and failure behavior, which keeps it below a 5.

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 front-loaded sentences with the output contract stated first and the security rationale second. The trailing 'Free.' is a marketing aside that adds no operational value and is the only slack in the text.

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, the description covers purpose, output format, determinism, and the deliberate absence of the mapping. The one real hole is the unexplained mask_tag parameter, which matters because there is no schema text to fall back on.

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% for both properties, so the description must compensate and largely does not. It explains masking output but never mentions the mask_tag parameter, which is presumably what controls the [APIKEY_1] style tags shown in the examples; the connection is left for the agent to guess.

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 ('Mask before you post: secrets become [APIKEY_1], [VISA_1]') and shows the exact output shape, so the agent knows it redacts secrets in place. It does not differentiate from the near-neighbor text_sanitize, which is presumably a competing choice for the same task.

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?

'Before you post' implies the use case (pre-publication scrubbing) but there is no explicit when-not, no prerequisites, and no named alternative such as text_sanitize or text_normalize. The agent must infer selection from context alone.

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.