Skip to main content
Glama

redact_pii

Detect and redact PII (emails, phones, SSNs, credit cards, API keys) from text.

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

Input Schema

NameRequiredDescriptionDefault
modeNoplaceholder
textYesText to scan and redact

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full disclosure burden, and it omits key behavior: what happens to non-PII text, whether output is the redacted string or a report of findings, whether hash mode is irreversible, and what detection confidence or false-positive behavior to expect. Listing the entity types is the only behavioral content added.

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?

A single tight sentence with the core action front-loaded and no padding. Its brevity is efficient, though the same space could have carried one clarifying clause about output or mode.

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

Completeness2/5

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

With no annotations and no output schema, the description must explain the return shape, and it does not — an agent cannot tell whether it receives redacted text, a list of detected spans, or counts. For a two-parameter transform tool with an undocumented mode parameter, that leaves real gaps.

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?

The schema documents 'text' but leaves 'mode' with only an enum and default, putting coverage at roughly 50%. The description never explains placeholder vs mask vs hash, though the enumerated PII categories indirectly tell the agent what the text scan will catch, so it partially compensates.

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?

States a concrete verb pair (detect and redact) plus the resource (PII) and enumerates the entity types it targets: emails, phones, SSNs, credit cards, API keys. That specificity separates it cleanly from siblings like validate_email or parse_user_agent, which analyze rather than strip data.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description never says when to reach for this tool versus alternatives, nor mentions any preconditions or exclusions. Usage is only inferable from the name and the entity list; an agent gets no explicit routing guidance.

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