Skip to main content
Glama

Agent Shield

Leak Guard: check text BEFORE your agent sends or stores it for API keys, passwords, private keys, card numbers and personal data, and get a redacted copy

scan_for_leaks

Detects secrets (AWS, GitHub, OpenAI, Anthropic, Google, Slack and Stripe keys, private keys, JWTs, database connection strings, bearer tokens, password assignments, crypto private keys, high-entropy tokens next to key/secret words) and personal data (emails, phone numbers, Luhn-valid card numbers, checksum-valid IBANs, US SSNs, IP addresses). Returns risk level, masked findings with line numbers and a redacted_text that is safe to send. include=secrets checks only secrets. Nothing is stored or logged. Price 0.002 USDC per call; first 3 calls per day free.

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

Input Schema

NameRequiredDescriptionDefault
textYesOutgoing message, email, post, code or document (max 300,000 chars)
includeNoall (default) or secrets only
paymentNoOptional x402 payment (base64 X-PAYMENT header value). Not needed while the free daily sample lasts.
allow_contact_infoNoTreat emails/phone numbers alone as acceptable (safe_to_send stays true)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.4/5.0
Behavior5/5

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

With no annotations supplied, the description carries the full burden and does so: it discloses that nothing is stored or logged (critical for a tool handling secrets), the pricing model (0.002 USDC/call, 3 free/day), and the full response shape including masked findings with line numbers and a ready-to-send redacted copy. An agent knows the cost, the privacy posture, and what it gets back before calling.

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?

Front-loaded with the detection surface, then return shape, then scope flag, then privacy and pricing—a sensible order with short standalone sentences at the end. The long parenthetical key-type list is dense but earns its place by telling the agent what will be flagged.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

There is no output schema, and the description compensates by naming the return fields (risk level, masked findings with line numbers, redacted_text) and asserting the redacted copy is safe to send. Combined with the privacy and cost disclosures, an agent has everything needed to decide and invoke correctly.

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 schema already documents all four parameters. The description restates include=secrets behavior and frames the text input as outgoing content, but adds no new meaning for allow_contact_info or payment (payment is only mentioned indirectly via price). Baseline 3 applies when the schema does the heavy lifting.

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 action (detect secrets and personal data) with an enumerated taxonomy of what it catches and what it returns (risk level, masked findings, redacted_text). The title's 'check text BEFORE your agent sends or stores it' plus the text-input scope clearly separates it from siblings like scan_github_repo or scan_mcp_server.

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?

Gives a concrete trigger condition: run it on outgoing content before the agent sends or stores it. It does not explicitly name a sibling alternative or state when NOT to use it (e.g. vs scan_text_for_injection), so it falls short of the top band, but the usage context is unambiguous.

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.