Skip to main content
Glama

ai_pdf_redact

Read-onlyIdempotent

AI PDF Redactor: find and redact personal data (emails, phones, IDs, cards, names) in text. Rules run first; AI is optional. AI-generated parts: review before use.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to process, plain UTF-8, for example: The quick brown fox.
useAiNotrue or false: use ai. Default false.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true and destructiveHint=false, so the safety profile is covered upstream. The description adds real value with the rules-first ordering and the caution that AI-produced results need review, which explains why the deterministic path is the default.

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?

Three short, front-loaded clauses with no filler, and the most important fact (what gets redacted) comes first. The telegraphic style ('Rules run first; AI is optional.') is dense but occasionally reads as notes rather than prose.

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

Completeness3/5

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

For a two-parameter tool with a childishly simple schema and no output schema, the definition covers the essentials but omits what it actually returns (redacted text? findings list? offsets?) and does not reconcile the 'PDF' in its name with the plain-text parameter. Those are notable gaps for a redaction tool whose output must be reused downstream.

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 both parameters are already documented, which sets the baseline at 3. The description's 'AI is optional'/'Rules run first' phrasing does reinforce the meaning of useAi (a non-default opt-in), but offers no format, length, or output details beyond the schema.

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 concrete verb ('find and redact') plus the resource ('personal data') and enumerates the entity classes it covers (emails, phones, IDs, cards, names). It does not distinguish itself from the sibling pdf_redact, and the name says 'PDF' while the description and schema operate on plain text, leaving mild ambiguity about scope.

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?

Gives implied guidance via 'Rules run first; AI is optional,' which tells the agent that useAi is an opt-in enhancement, and 'AI-generated parts: review before use' sets a verification expectation. But there is no explicit statement of when to prefer this tool over pdf_redact or when to leave useAi false, leaving the choice largely to the agent.

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