Skip to main content
Glama

pii_redact

Redact PII and secrets from text before it reaches an LLM or a log: emails, phones, SSNs, credit cards, IBANs, IP addresses and API keys, with a list of what was removed. Paid via x402 ($0.002 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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

Input Schema

NameRequiredDescriptionDefault
textYesText to check (up to 100,000 characters). Use POST with a JSON body for long text. / Texto a revisar.
styleNoReplacement style: label ([EMAIL_1], default), mask (****) or type ([EMAIL]).
typesNoOptional comma list: all (default), pii, secrets, or specific types (email, phone, us_ssn, credit_card, iban, ipv4, openai_api_key, aws_access_key_id, github_token, jwt, private_key, password_assignment, …).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior4/5

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

With no annotations at all, the description carries the full disclosure burden and does substantial work: it states the x402 payment model, the exact price and chains, that payment is per tools/call, that invalid input is rejected without charge, and the free-trial mechanics including the HTTP header and the automatic MCP behavior. Gaps remain around data retention of the submitted text, idempotency, and rate limits beyond the trial, which keeps it from 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The purpose is correctly front-loaded and no sentence is pure filler, but the payment clause is a run-on with nested parentheses and unbalanced brackets ("Base mainnet (also Polygon, Arbitrum and Solana))"), and "Includes asOf and source" is a return-value fragment spliced into the pricing sentence. It reads as compressed rather than structured.

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 three-parameter tool with no output schema and no annotations, the definition covers the commercially important behavior — cost, free tier, error handling, and the fact that a list of removed items is returned — which is what an agent needs to decide to call it. It stops short of describing the response shape in detail or privacy guarantees, leaving a modest residual gap.

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%, so the schema already documents text, style, and types including the enum values, and the baseline applies. The description's enumeration of PII types loosely reinforces the `types` parameter but adds no syntax or format detail the schema lacks, and it says nothing about how `style` interacts with output.

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?

Opens with a specific verb and resource ("Redact PII and secrets from text") and immediately scopes the goal ("before it reaches an LLM or a log"). The enumerated categories — emails, phones, SSNs, credit cards, IBANs, IPs, API keys — make the tool's coverage unambiguous and clearly distinguish it from the unrelated sibling utilities.

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?

The phrase "before it reaches an LLM or a log" gives a concrete trigger context, which is more than most definitions offer. It does not name an alternative tool or state when-not to use it, but no sibling in the supplied list performs comparable redaction, so the practical guidance gap is small.

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