Skip to main content
Glama

Tinplate AI Agent Security & Guardrails MCP

tinplate_secret_scanner

Read-onlyIdempotent

Scan text, logs, diffs, and prompts across 28 credential detectors (cloud keys, tokens, PEM private keys, JWTs, high-entropy strings) and mask secrets offline. (Endpoint: POST /v1/secret-scanner)

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

Input Schema

NameRequiredDescriptionDefault
modeNo'token' replaces each unique secret with [SECRET_<TYPE>_<N>] and returns a caller-only map; 'mask' replaces with [REDACTED:<TYPE>]; 'partial' preserves a short prefix/suffix.token
textYesRaw log output, .env file, code snippet, or unified git diff to scan.
typesNoOptional allowlist of secret types to scan for. Scans all 28 types when omitted.
min_entropyNoMinimum Shannon entropy (bits/char) required for GENERIC_HIGH_ENTROPY matches.
diff_only_addedNoWhen true on a unified git diff, ignores removed lines ('-...') and only scans added/context lines.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changed
    • removedInput schema / properties / diff_only_added / example
      Removed value: -false
    • removedInput schema / properties / min_entropy / example
      Removed value: -3.8
    • removedInput schema / properties / mode / example
      Removed value: -"token"
    • removedInput schema / properties / text / example
      Removed value: -"export GITHUB_TOKEN=ghp_1234567890abcdefghijklmnopqrstuvwxyz\nDB_URL=postgres://admin:s3cr3tP@ssw0rd99@db.internal:5432/prod"
  2. Changed2 schema fields changed
    • addedInput schema / properties / types / maxItems
      Added value: +28
    • addedInput schema / properties / types / minItems
      Added value: +1
  3. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  4. Changed1 schema field changed
    • changedInput schema / properties / types / description
      Previous value: -"Optional allowlist of secret types to scan for. Scans all 18 types when omitted."New value: +"Optional allowlist of secret types to scan for. Scans all 28 types when omitted."
  5. Changed10 schema fields changed
    • addedInput schema / properties / diff_only_added
      Added value: +{
      +  "default": false,
      +  "description": "When true on a unified git diff, ignores removed lines ('-...') and only scans added/context lines.",
      +  "example": false,
      +  "type": "boolean"
      +}
    • addedInput schema / properties / min_entropy
      Added value: +{
      +  "default": 3.8,
      +  "description": "Minimum Shannon entropy (bits/char) required for GENERIC_HIGH_ENTROPY matches.",
      +  "example": 3.8,
      +  "maximum": 6,
      +  "minimum": 2.5,
      +  "type": "number"
      +}
    • addedInput schema / properties / mode
      Added value: +{
      +  "default": "token",
      +  "description": "'token' replaces each unique secret with [SECRET_<TYPE>_<N>] and returns a caller-only map; 'mask' replaces with [REDACTED:<TYPE>]; 'partial' preserves a short prefix/suffix.",
      +  "enum": [
      +    "token",
      +    "mask",
      +    "partial"
      +  ],
      +  "example": "token",
      +  "type": "string"
      +}
    • removedInput schema / properties / redact
      Removed value: -{
      -  "description": "Boolean flag 'redact' (default: true)",
      -  "type": "boolean"
      -}
    • changedInput schema / properties / text / description
      Previous value: -"Parameter 'text' (e.g. \"Authorization: Bearer sk_live_51Nq9abcDEF1234567890ghijklMNO\")"New value: +"Raw log output, .env file, code snippet, or unified git diff to scan."
    • addedInput schema / properties / text / example
      Added value: +"export GITHUB_TOKEN=ghp_1234567890abcdefghijklmnopqrstuvwxyz\nDB_URL=postgres://admin:s3cr3tP@ssw0rd99@db.internal:5432/prod"
    • addedInput schema / properties / text / maxLength
      Added value: +262144
    • addedInput schema / properties / text / minLength
      Added value: +1
    • addedInput schema / properties / types
      Added value: +{
      +  "description": "Optional allowlist of secret types to scan for. Scans all 18 types when omitted.",
      +  "items": {
      +    "enum": [
      +      "OPENAI_API_KEY",
      +      "ANTHROPIC_API_KEY",
      +      "HUGGINGFACE_TOKEN",
      +      "AWS_ACCESS_KEY_ID",
      +      "AWS_SECRET_ACCESS_KEY",
      +      "GITHUB_TOKEN",
      +      "GITLAB_TOKEN",
      +      "SLACK_TOKEN",
      +      "SLACK_WEBHOOK",
      +      "STRIPE_KEY",
      +      "GOOGLE_API_KEY",
      +      "SENDGRID_API_KEY",
      +      "TWILIO_API_KEY",
      +      "MAILGUN_API_KEY",
      +      "SHOPIFY_TOKEN",
      +      "NPM_TOKEN",
      +      "PYPI_TOKEN",
      +      "DATABRICKS_TOKEN",
      +      "DIGITALOCEAN_TOKEN",
      +      "LINEAR_API_KEY",
      +      "SUPABASE_TOKEN",
      +      "POSTMAN_API_KEY",
      +      "DISCORD_WEBHOOK",
      +      "TELEGRAM_BOT_TOKEN",
      +      "PRIVATE_KEY",
      +      "JWT",
      +      "BASIC_AUTH_URL",
      +      "GENERIC_HIGH_ENTROPY"
      +    ],
      +    "type": "string"
      +  },
      +  "type": "array"
      +}
    • changedInput schema / required
      Previous value: -[
      -  "text",
      -  "redact"
      -]New value: +[
      +  "text"
      +]
  6. First observed

TDQS

A3.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so safety is covered structurally. The description adds meaningful context beyond that: processing is 'offline', the detector roster is bounded at 28, and masking produces a substitute token rather than removing content. Nothing contradicts the read-only, non-destructive 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?

A single front-loaded sentence puts the action and detector scope first, followed by the workspace qualifier 'offline' and the endpoint hint. It is tight with no filler. The trailing endpoint notation is minor metadata that does not materially help an agent choose or call the tool.

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 five parameters and no output schema, the return shape is the main open question: 'token' mode yields a caller-only map, and the description never says what the response contains or how a caller should retain that map. Mutation-free scanning is well covered by annotations plus the 'offline' note, but the missing response contract leaves a real gap for a moderately complex tool.

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%, and the schema already defines mode semantics, the type allowlist, entropy threshold, and diff_only_added in detail. The description only restates the 28-type enumeration and the masking behavior, adding little beyond the structured fields. Baseline 3 is appropriate when the schema carries the parameter burden.

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 specific verb+resource ('Scan text, logs, diffs, and prompts') with concrete scope ('28 credential detectors... cloud keys, tokens, PEM private keys, JWTs, high-entropy strings') and an outcome ('mask secrets offline'). An agent can distinguish it from generic redaction siblings by the credential-focused detector list. It stops short of naming adjacent siblings such as the restore tool that pairs with 'token' mode, so differentiation is strong but not explicit.

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?

The input contexts (logs, .env, code snippets, unified diffs) imply when to reach for it, which is adequate guidance. However, there is no explicit when-not, no mention of the restore counterpart needed to reverse 'token' mode, and no steering away from the PII redactor sibling for non-credential data. Usage is inferred rather than stated.

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.