Skip to main content
Glama

Tinplate Edge AI Safety, Security & Data Validation

tinplate_secret_scanner_restore

Read-onlyIdempotent

Log Redact & Secret Scanner API (restore): Detect and mask leaked API keys, JWTs, and private keys in logs, diffs, and prompts. (Endpoint: POST /v1/secret-scanner/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_secret_scanner_restore"
  }
}

Input Schema

NameRequiredDescriptionDefault
tokensYesCaller-provided map of `[SECRET_*]` placeholder tokens (max 500 entries) to original secret values.
redacted_textYesRedacted text containing `[SECRET_*]` placeholder tokens to restore.

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 `[SECRET_*]` placeholder tokens to restore."
    • addedInput schema / properties / tokens / description
      Added value: +"Caller-provided map of `[SECRET_*]` placeholder tokens (max 500 entries) to original secret values."
  4. Changed7 schema fields changed
    • removedInput schema / properties / redacted_text / description
      Removed value: -"Parameter 'redacted_text' (e.g. \"Token: [SECRET_OPENAI_API_KEY_1]\")"
    • addedInput schema / properties / redacted_text / example
      Added value: +"export GITHUB_TOKEN=[SECRET_GITHUB_TOKEN_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: +{
      +  "type": "string"
      +}
    • removedInput schema / properties / tokens / description
      Removed value: -"Structured object parameter 'tokens'"
    • addedInput schema / properties / tokens / example
      Added value: +{
      +  "[SECRET_GITHUB_TOKEN_1]": "ghp_1234567890abcdefghijklmnopqrstuvwxyz"
      +}
  5. Added

TDQS

B3.2/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, openWorldHint=false, so the safety profile is covered. The description adds the endpoint and the supported secret categories, but does not disclose that restoration requires the caller-supplied token map produced by the redaction step, which is the main behavioral caveat for this tool.

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?

One compact sentence with the endpoint appended inline; it is front-loaded and waste-free. The only inefficiency is that the parenthetical endpoint adds little for an agent that cannot choose transports.

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 transform with full schema coverage and no output schema, the definition covers the domain and the endpoint capably. What is missing is the round-trip contract with its redact sibling, which matters more here than any return-value detail.

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 coverage is 100% and both parameters carry detailed descriptions including max lengths (500 entries, 4096 chars) and examples, so the baseline is 3. The description adds nothing about the tokens map or placeholder format beyond what the schema already documents.

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?

The description names a specific verb pair ("Detect and mask") and resource (leaked API keys, JWTs, private keys in logs, diffs, prompts), plus the endpoint. However, for a tool literally named "restore," the description describes detection/masking (the redact behavior) rather than restoration, so the stated purpose slightly misfires against the tool's actual inverse operation.

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?

No when-to-use guidance, no prerequisites, and no explicit alternative named. The critical pairing — use tinplate_secret_scanner to redact first, then this tool with the returned tokens map to restore — is only inferable from the sibling name, not stated in the definition.

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