Skip to main content
Glama

Secret-Leak Preflight

secret_scan
Read-onlyIdempotent

Secret-Leak Preflight: before a handoff, prompt or payload leaves your boundary, scan it for API keys (Anthropic, OpenAI, AWS, GitHub, Stripe, Slack, Google...), PEM keys, wallet private keys, recovery phrases, DB passwords, JWTs and card numbers. CLEAN / REVIEW / BLOCK with JSON path + offset and redacted previews. Scanned in memory, never stored or logged. By OMENZ. (MCP calls run in AYNE, the free playzone; production: POST https://www.omenz.org/api/tollbooth/v1/secret-scan, $0.002 via x402.)

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": {
      "payload": "<payload>"
    },
    "name": "secret_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
payloadYesString or JSON (<=256 KB) to check

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4/5.0
Behavior4/5

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

Annotations already say readOnly/idempotent/non-destructive, so the description doesn't need to reassert safety. It instead adds non-obvious behavior: in-memory scanning with no storage or logging, a three-tier CLEAN/REVIEW/BLOCK verdict with JSON path, offset and redacted previews, plus the paid production endpoint. It never explains what separates REVIEW from BLOCK, so the decision boundary stays opaque.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core clause is well front-loaded, but the tail degrades into promotion — 'By OMENZ.', the AYNE playzone explanation and x402 pricing — which is operational trivia an agent doesn't need to invoke the tool. The vendor list is long yet arguably earns its place by scoping detection coverage.

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?

With no output schema, the description carries return-value disclosure and does so with verdict levels, path/offset and redacted previews. For a one-parameter read-only tool that is essentially sufficient; only the REVIEW/BLOCK criteria and size-limit failure mode remain unstated.

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 the single parameter already documents 'String or JSON (<=256 KB)', so the description adds little beyond repeating that payloads can be prompts or handoff content. Baseline 3 applies when the schema does the heavy lifting on a one-parameter tool.

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 and resource — scan a payload for leaked credentials before it leaves your boundary — and enumerates the secret classes covered (API keys by vendor, PEM keys, wallet keys, recovery phrases, DB passwords, JWTs, card numbers). An agent can tell what this tool does and what result shape it returns without opening the schema.

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

Usage Guidelines4/5

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

The trigger condition is explicit: 'before a handoff, prompt or payload leaves your boundary.' It does not name a when-not case or point at any sibling (e.g. preflight, handoff_pack) as the alternative, so the routing half of the guidance is missing.

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