Skip to main content
Glama

Tinplate Edge AI Safety, Security & Data Validation

tinplate_pii_redactor_restore

Read-onlyIdempotent

PII Redactor API (restore): Mask emails, phones, IBANs, cards, IPs, SSNs, EU VATs, and HU IDs with reversible tokens before LLM calls. (Endpoint: POST /v1/pii-redactor/restore)

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": {
      "redacted_text": "<redacted_text>",
      "tokens": "<tokens>"
    },
    "name": "tinplate_pii_redactor_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensYesCaller-supplied map of '[PII_<TYPE>_<N>]' tokens to original values (max 500 entries).
redacted_textYesRedacted text containing '[PII_<TYPE>_<N>]' placeholders to restore (max 256 KB).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added
  2. Removed
  3. Changed3 schema fields changed
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / redacted_text / description
      Added value: +"Redacted text containing '[PII_<TYPE>_<N>]' placeholders to restore (max 256 KB)."
    • addedInput schema / properties / tokens / description
      Added value: +"Caller-supplied map of '[PII_<TYPE>_<N>]' tokens to original values (max 500 entries)."
  4. Changed7 schema fields changed
    • removedInput schema / properties / redacted_text / description
      Removed value: -"Parameter 'redacted_text' (e.g. \"Customer [PII_EMAIL_1] requested a refund.\")"
    • addedInput schema / properties / redacted_text / example
      Added value: +"Contact Alice at [PII_EMAIL_1]."
    • addedInput schema / properties / redacted_text / maxLength
      Added value: +262144
    • addedInput schema / properties / redacted_text / minLength
      Added value: +1
    • addedInput schema / properties / tokens / additionalProperties
      Added value: +{
      +  "maxLength": 4096,
      +  "type": "string"
      +}
    • removedInput schema / properties / tokens / description
      Removed value: -"Structured object parameter 'tokens'"
    • addedInput schema / properties / tokens / example
      Added value: +{
      +  "[PII_EMAIL_1]": "alice@tinplate.dev"
      +}
  5. Added

TDQS

C2.9/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, idempotentHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds only the endpoint and a reversibility framing, and says nothing about what happens with unrecognized or expired tokens, partial matches, or entry-limit violations beyond schema hints.

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 compact sentence with the variant qualifier and endpoint parenthesized at the end, so it is short and front-loaded. Its economy is undercut by the fact that most of its words describe the masking operation rather than this tool's work.

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?

With two required parameters, full schema descriptions, and rich annotations, the definition does not need return-value detail. What is missing is essential context: the restore direction and the prerequisite that the tokens map originate from a prior redaction, which is the single most important thing an agent must know before invoking it.

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%: 'tokens' is documented as a caller-supplied map of '[PII_<TYPE>_<N>]' tokens to originals (max 500 entries) and 'redacted_text' as the placeholder-bearing input (max 256 KB). The description adds no meaning beyond this baseline beyond implying the token format is shared with the redaction step.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose3/5

Does the description clearly state what the tool does and how it differs from similar tools?

The name, the '(restore)' qualifier, and the endpoint '/v1/pii-redactor/restore' identify the resource, but the only behavioral sentence describes the opposite direction: 'Mask emails, phones... with reversible tokens before LLM calls.' An agent reading just the prose could mistake this for the masking sibling (tinplate_pii_redactor) rather than the tool that substitutes tokens back to original values.

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 only usage cue, 'before LLM calls,' actually describes when to redact, not when to restore. Nothing tells the agent to call this after an LLM response, or that the tokens map must come from a prior redaction call; there are no exclusions or sibling routing between this and tinplate_pii_redactor.

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