Skip to main content
Glama

security_secret_scan

Read-only

Leaked secret and API key scanner — Scan code, config, logs or a public URL (text= or url=) for leaked credentials: private keys, AWS, Stripe, OpenAI, Anthropic, GitHub, GitLab, Slack, Discord, Google, SendGrid, npm, Telegram tokens, database URLs with passwords, JWTs, plus high-entropy secret assignments. Returns verdict LEAKED/REVIEW/LOW RISK/CLEAN, findings with type, severity and line number, and rotation advice. Matches are always masked - the full secret is never returned. Offline pattern + entropy engine. Price: $0.006 USDC (Base, 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": {
      "text": "<text>"
    },
    "name": "security_secret_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesAWS_KEY=AKIAIOSFODNN7EXAMPLE

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, and the description adds genuine context beyond them: matches are always masked and full secrets are never returned, the engine is offline pattern+entropy, verdict tiers are named, and a per-call price ($0.006 USDC via x402) is disclosed. The only gaps are operational details such as match-count limits or latency, which are minor for an annotated read-only scan.

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?

Purpose and input modes are front-loaded in the first clause, and the long token-vendor enumeration is dense but useful for matching capability. The single paragraph is efficient overall, though the vendor list could be compressed without losing discriminating power.

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 the return-value burden and does so well — it names the four verdict levels, finding fields (type, severity, line number), and rotation advice. For a one-parameter read-only scanner this is nearly complete; the only real defect is the phantom url parameter that conflicts with the schema.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and the single 'text' parameter carries its own example, so baseline would be 3. But the description advertises '(text= or url=)' as alternate inputs while the schema defines only a required 'text' property and no 'url' at all, which can lead an agent to construct an invalid call. The added parameter context is therefore partially misleading rather than additive.

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 ('Leaked secret and API key scanner — Scan ... for leaked credentials') and enumerates the exact credential families detected (AWS, Stripe, OpenAI, private keys, JWTs, database URLs, high-entropy assignments). This clearly separates it from neighboring tools like security_jwt_decode or security_ioc_extract, which analyze a single token type or extract indicators rather than scanning content for leaks.

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 description implicitly frames usage by naming input surfaces — code, config, logs, public URL — which tells an agent what content is in scope. However, it never states when to prefer this tool over a sibling (e.g., security_jwt_decode for a single token) or any precondition such as needing raw content rather than a hash. Usage is implied, not prescribed.

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