Skip to main content
Glama

ai_pii_redact

Read-only

AI PII redaction — Redact personal data (emails, phones, addresses, names, ID and card numbers, IPs, birth dates) from text before logging or sharing, using Workers AI. Pass ?text= with the text. Price: $0.008 USDC (Base, via x402).

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": "ai_pii_redact"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesthe text to redact

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, non-destructive, open-world), and the description adds genuinely new behavioral context: it runs on Workers AI and costs $0.008 USDC on Base via x402, which is an auth/payment prerequisite the agent must know before invoking. It does not disclose the output shape or how redacted spans are represented, which is the main remaining opacity.

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 short clauses, front-loaded with the action and entity list, then invocation, then price. No redundant restatement of the name or title, and the cost caveat is placed where it will be read before calling.

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

Completeness3/5

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

For a single-parameter tool this is nearly complete, but with no output schema the description should describe what comes back (masked text, placeholder format, whether detected entities are returned) and it does not. The payment requirement is well covered, so the gap is limited to return-value expectation.

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 there is a single required parameter, so the schema already carries the meaning. The description only adds the transport hint 'Pass ?text= with the text', which is mildly useful but adds no semantics about formatting, length limits, or encoding.

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 ('Redact personal data ... from text') and enumerates the entity classes handled (emails, phones, addresses, names, ID/card numbers, IPs, birth dates), plus the engine ('using Workers AI'). It does not name or contrast any sibling (e.g. ai_moderate, ai_entities), so an agent must infer the boundary itself.

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 concrete use context: 'before logging or sharing', which tells the agent the intended moment to call this. It offers no explicit exclusions or alternatives for adjacent tasks (classification, entity extraction) and gives no guidance on input size or language coverage.

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.

Resources