Skip to main content
Glama

Aigine Redact – Mask document

propose_masking

Detects and masks personal data (GDPR, including Art. 9 special categories) and confidential information (trade secrets, procurement tenders, FOIA exemptions, and statutory secrecy such as Swedish OSL) in a PDF, DOCX, PPTX, or image document, using non-generative encoder classifiers on EU GPUs (98.30% precision, 93.17% recall, 95.67% F1; 10.8 s median latency; strict zero retention). Requires exactly one document source: upload_id from create_upload_link (in a chat, call create_upload_link first), document_base64 for files of 45 KB or less, or file_url (a direct HTTPS link to the file). Calls without a document source fail. The policy selects which detection categories are used. Returns download_url for a flattened PDF with irreversible masks, or review_url and doc_id when require_human_review is true. With no person present, use require_human_review: false. Free tier: watermarked PDF, 100 documents per day.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "propose_masking"
  }
}

Input Schema

NameRequiredDescriptionDefault
policyNoRedaction policy: 'Privacy' (GDPR personal data, default), 'Secrecy' (trade secrets and statutory secrecy/OSL), or 'Privacy and Secrecy' (both).
file_urlNoDirect HTTPS URL of the source document to mask.
filenameNoOriginal filename including extension (e.g. 'report.pdf' or 'contract.docx').
upload_idNoTemporary upload ID representing a file uploaded to the EU server.
document_base64NoBase64-encoded document bytes (up to 45 KB).
require_human_reviewNoWhen true, prepares an interactive web GUI review session (review_url) before generating the final PDF. When false (default), generates the masked PDF directly.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed5 schema fields changed
    • changedInput schema / properties / document_base64 / description
      Previous value: -"Base64-encoded document bytes (max 45 KB)."New value: +"Base64-encoded document bytes (up to 45 KB)."
    • changedInput schema / properties / file_url / description
      Previous value: -"Direct HTTPS URL to fetch the source document from (e.g. pre-signed cloud URL)."New value: +"Direct HTTPS URL of the source document to mask."
    • changedInput schema / properties / policy / description
      Previous value: -"Masking policy: 'Privacy' (GDPR default), 'Secrecy' (confidential/OSL), or 'Privacy and Secrecy' (both)."New value: +"Redaction policy: 'Privacy' (GDPR personal data, default), 'Secrecy' (trade secrets and statutory secrecy/OSL), or 'Privacy and Secrecy' (both)."
    • changedInput schema / properties / require_human_review / description
      Previous value: -"Set true only when a person is present and wants to review masks in the web GUI; pipelines without a person should use false."New value: +"When true, prepares an interactive web GUI review session (review_url) before generating the final PDF. When false (default), generates the masked PDF directly."
    • changedInput schema / properties / upload_id / description
      Previous value: -"Upload ID from create_upload_link or POST /mcp/api/upload."New value: +"Temporary upload ID representing a file uploaded to the EU server."
  2. Changed3 schema fields changed
    • changedInput schema / properties / document_base64 / description
      Previous value: -"Base64-encoded document bytes (use for programmatic pipelines or small chat-attached files <= 45 KB when sandbox network egress is disabled)."New value: +"Base64-encoded document bytes (max 45 KB)."
    • changedInput schema / properties / policy / description
      Previous value: -"Masking policy: 'Privacy' (GDPR default), 'Secrecy' (OSL/confidential), or 'Privacy and Secrecy' (both)."New value: +"Masking policy: 'Privacy' (GDPR default), 'Secrecy' (confidential/OSL), or 'Privacy and Secrecy' (both)."
    • changedInput schema / properties / require_human_review / description
      Previous value: -"MUST be false for autonomous agents. Set true ONLY when a live human wants interactive web GUI review."New value: +"Set true only when a person is present and wants to review masks in the web GUI; pipelines without a person should use false."
  3. First observed

TDQS

A4.6/5.0
Behavior4/5

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

Annotations declare openWorldHint=true, destructiveHint=false and non-idempotency; the description adds substantial context beyond them, including irreversible masking, strict zero retention, watermarked free tier, and a 100 documents/day rate limit. The quality and latency metrics are extra color rather than required behavior, and it does not explicitly reconcile 'irreversible' output with destructiveHint=false, but nothing contradicts the annotations.

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?

It is one dense paragraph, but purpose and the source-selection constraint are front-loaded and nearly every clause carries operational information. The benchmark statistics (98.30% precision, 10.8 s median latency) are the least essential content and could be trimmed.

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?

With six parameters and no output schema, the description still explains return values (download_url for the flattened masked PDF, or review_url plus doc_id under human review) and the free-tier constraint. An agent has everything needed to choose a source type and interpret the result.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description still adds meaning by stating the mutual-exclusivity constraint across source parameters, tying upload_id to create_upload_link, and explaining that policy selects which detection categories run and that require_human_review=false is correct when no person is present. It adds real routing semantics rather than restating field text.

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 specific verb (detects and masks) and resource (personal data and confidential information in PDF/DOCX/PPTX/images), plus the detection approach (non-generative encoder classifiers on EU GPUs). An agent can distinguish this from create_upload_link and fetch_reviewed_document because the description names the upload prerequisite explicitly.

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

Usage Guidelines5/5

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

Gives explicit routing rules: exactly one document source must be supplied, with the three alternatives and their conditions (upload_id from create_upload_link, base64 only for files 45 KB or less, file_url as direct HTTPS link). It also states a negative case (calls without a document source fail) and a decision rule for require_human_review when no person is present.

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.