Skip to main content
Glama

ai_pii_redact_batch

Read-only

AI PII redaction (batch) — Redact personal data (names, emails, phones, addresses, IDs) from up to 10 texts in one call via Workers AI. texts = items separated by | or newlines, or a JSON array. Returns each redacted text with counts by type, plus totals and how many texts contained PII. Price: $0.02 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": {
      "texts": "<texts>"
    },
    "name": "ai_pii_redact_batch"
  }
}

Input Schema

NameRequiredDescriptionDefault
textsYese.g. Call Jane Doe at 615-555-0100|Email bob@example.com about the invoice

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.1/5.0
Behavior5/5

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

Going well beyond the readOnly/openWorld annotations, the description discloses the accepted input encodings (pipe, newline, or JSON array), the exact return shape (per-text redacted output with per-type counts, totals, and how many texts contained PII), and the payment/cost model ($0.02 USDC via x402 on Base). The cost disclosure in particular is operationally important and unavailable anywhere else.

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?

Front-loaded with verb and resource, then input format, then return shape, then price – a sensible order with no filler. It is a single dense run of clauses with parentheticals, which is slightly heavy but nothing is redundant.

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

Completeness5/5

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

With no output schema, the description carries the return-value burden and does so (per-text redacted results, per-type counts, totals, PII-bearing text count). Input encoding, batch limit, cost, and processor are all covered for a one-parameter 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% and the single parameter already carries an example, but the description adds real meaning the schema lacks: that newline separation and JSON arrays are also accepted, not just the pipe-delimited form shown in the example. That materially reduces format errors.

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 (names, emails, phones, addresses, IDs)') and scopes it to 'up to 10 texts in one call'. The batch identity is clear from the text, but it never explicitly names the singular sibling ai_pii_redact as the alternative for one-off redaction, so the distinction is left implicit.

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?

The 'up to 10 texts in one call' phrasing implies when batching is appropriate, but there is no explicit when-to-use/when-not-to-use guidance and no named alternative. An agent must infer that single-text work belongs to the non-batch sibling.

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