Skip to main content
Glama

Spendplane — AI Privacy, Redaction & Cost Routing

Scan Text for AI Leaks & PII

scan_text_for_ai_leaks
Read-onlyIdempotent

Statelessly inspect prompt text, support transcripts, or tool JSON for API keys, bearer tokens, private keys, emails, phone numbers, IPs, SSNs, credit cards, and custom sensitive terms, returning masked text and finding counts.

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

Input Schema

NameRequiredDescriptionDefault
textYesPrompt, log snippet, or JSON payload string to inspect for sensitive entities.
custom_termsNoOptional exact sensitive strings (e.g. project codenames or client names) to mask.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and closed-world, so the description's marginal contribution is the 'statelessly' disclosure (nothing is stored) and the statement that output is masked text plus finding counts. The latter is especially valuable since no output schema exists. It omits detail on how custom terms are matched or how counts are reported, keeping 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.

Conciseness4/5

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

A single front-loaded sentence: verb first, contexts second, detection categories third, return value last. The long entity enumeration earns its place by communicating detection coverage, though the list is dense enough to slow scanning slightly.

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 two-parameter, non-destructive read tool with no output schema, the description covers what it inspects, what it detects, and what it returns, and annotations handle safety. Minor gaps remain around output structure and custom-term matching, but nothing an agent needs in order to call it correctly is missing.

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 explains both 'text' and 'custom_terms'; the description's only added semantic is that custom terms are treated as additional sensitive strings to mask. That is the baseline 3, with the schema doing the heavy lifting.

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?

Names a specific verb (inspect/scan) and resource (text, transcripts, tool JSON), and enumerates the entity classes detected plus the return shape (masked text and finding counts). That scope, plus 'statelessly', implicitly separates it from the reversible-redaction simulator sibling, but no sibling is named explicitly, so it stops short of a 5.

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 input contexts named ('prompt text, support transcripts, or tool JSON') give a clear picture of when this tool applies, and 'statelessly' signals no persistence side effects. It does not state exclusions or point to the alternative tool for reversible/simulated redaction, so guidance is contextual rather than directive.

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