Skip to main content
Glama

Masks likely secrets and personal data in agent logs

agent_intel_pii_credentials_redaction
Read-only

Masks likely secrets and personal data in agent logs or chat text: 0x private keys (64 hex), labelled base58 private keys, JWTs, AWS access key ids, common API token prefixes (sk-, ghp_, xoxb-), payment card numbers that pass the Luhn check, and email addresses. Returns the redacted text and counts. Pattern-based: it can miss unusual formats and does not detect seed phrases or names. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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

Input Schema

NameRequiredDescriptionDefault
textYesText to redact, 1 to 50000 characters

Output Schema

NameRequiredDescriptionDefault
noteNo
totalNo
countsNo
sourceNo
changedNo
redactedNo
checkedAtNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, the description discloses return contents ('redacted text and counts'), the detection methodology and its blind spots, and a billing model including per-call price, payment rails, and the fact that failed calls are not charged. These are exactly the behavioral traits an agent needs before invoking a paid tool.

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?

The definition is front-loaded with what gets masked, then limitations, then cost. Every sentence carries operational value, including the pricing paragraph, which an agent must know before making a paid call. There is no filler or repetition of the title.

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?

For a one-parameter, output-schema-backed tool, the definition covers purpose, detection coverage, known gaps, return shape, and billing. Nothing material is missing for correct selection or invocation.

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?

There is a single parameter with 100% schema description coverage, so the schema already documents 'text' and its 1–50000 character bound. The description mentions the kinds of text it accepts ('agent logs or chat text') but adds no format or syntax guidance beyond what the schema provides. Baseline 3 is appropriate.

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?

The description states a specific verb and resource ('Masks likely secrets and personal data in agent logs or chat text') and enumerates the exact pattern classes it targets, including private keys, JWTs, AWS key ids, token prefixes, Luhn-valid card numbers, and emails. This is far more specific than the name or title alone and clearly separates it from unrelated siblings such as schema guards or citation verifiers.

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?

It gives clear context for use: text from agent logs or chat that may contain credentials or personal data. It also states exclusions in the form of detection limits ('does not detect seed phrases or names'). It does not name an alternative sibling for cases outside its scope, which keeps it below a 5.

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