Skip to main content
Glama

screen_secret

Read-only

Deterministic pre-publish secret leak detector & redactor for PRs, logs, and webhooks (OpenAI, Anthropic, AWS, GitHub, Stripe, Slack, Google keys, PEM & 64-hex private keys, JWTs, Bearer tokens -> safe, riskScore, masked findings, redactedText). Requires $0.002 (2000 atomic) Base USDC on eip155:8453 via @x402/mcp _meta["x402/payment"] or PAYMENT-SIGNATURE header.

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

Input Schema

NameRequiredDescriptionDefault
textNoAlias for `secret`: single text/log/PR snippet (up to 8192 chars) to scan & redact for leaked secrets.
textsNoAlias for `secrets`: array of text snippets (up to 8192 chars each) to scan & redact for leaked secrets.
secretNoSingle text/log/diff/webhook payload shorthand (up to 8192 chars) to scan & redact for leaked API keys, private keys, JWTs, and Bearer tokens.
secretsNoText snippets, PR bodies, logs, or webhook payloads (up to 8192 chars each) to scan & redact for leaked API keys (OpenAI, Anthropic, AWS, GitHub, Stripe, Slack, Google), PEM/hex private keys, JWTs, and Bearer tokens.

Output Schema

NameRequiredDescriptionDefault
okNoWhether the screening check completed.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "ok": {
      +      "description": "Whether the screening check completed.",
      +      "type": "boolean"
      +    }
      +  },
      +  "type": "object"
      +}
  2. First observed

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/destructive=false and openWorld=true, but the description adds behavior those annotations cannot convey: a fixed per-call cost ($0.002 / 2000 atomic Base USDC on eip155:8453), the exact payment channel (_meta["x402/payment"] or PAYMENT-SIGNATURE header), determinism, and the output shape (safe, riskScore, masked findings, redactedText). The remaining gap is that it never says what happens if no argument is supplied, despite zero required parameters, or whether repeated calls are billed each time (relevant given idempotentHint=false).

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?

The purpose is front-loaded in the opening clause and the payment precondition follows immediately; there is no filler. It is dense to the point of packing an arrow-notation output sketch and a vendor enumeration that partly duplicates the schema's own parameter descriptions, which costs it the top score.

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?

Output schema exists, so return values need not be spelled out, and the cost/auth mechanism — the main failure mode for this tool — is explicitly covered. What remains missing is invocation guidance for a 0-required-parameter tool with four overlapping aliases, which is the most likely source of a malformed call.

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 the four aliased parameters (text/texts/secret/secrets) are already fully documented with length and item limits. The description adds nothing about the alias relationship or whether 'text' and 'secret' are interchangeable or mutually exclusive, so it sits at the baseline for high schema coverage.

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 and resource ('Deterministic pre-publish secret leak detector & redactor') and enumerates the credential families it covers (OpenAI, AWS, GitHub, Stripe, Slack, Google keys, PEM, hex, JWTs, Bearer tokens), so an agent knows exactly what it does. It stops short of differentiating itself from the very close sibling 'preview_secret_lint' or from 'screen_diff'/'screen_batch', which would be needed for a 5.

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?

'pre-publish' implies the moment to use it (scanning content before it ships), and the payment sentence signals the precondition of a funded x402 call. There is no explicit when-not guidance, no mention of when to prefer preview_secret_lint, screen_diff, or screen_batch, and no statement about whether this should be run on every PR versus sampled content.

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