Skip to main content
Glama

prompt_guard

Detect prompt injection and jailbreak attempts in untrusted text (web pages, emails, tool output) before an agent reads it. Returns verdict, score and the rules that matched. Paid via x402 ($0.003 USDC on Base mainnet (also Polygon, Arbitrum and Solana)) on this tools/call request. Includes asOf and source. Invalid input is rejected without payment. Free trial: 3 unpaid calls/day per IP on this tool (HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent).

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

Input Schema

NameRequiredDescriptionDefault
textYesText to check (up to 100,000 characters). Use POST with a JSON body for long text. / Texto a revisar.
styleNoReplacement style: label ([EMAIL_1], default), mask (****) or type ([EMAIL]).
typesNoOptional comma list: all (default), pii, secrets, or specific types (email, phone, us_ssn, credit_card, iban, ipv4, openai_api_key, aws_access_key_id, github_token, jwt, private_key, password_assignment, …).
redactNoInclude redacted_text (default true).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the whole behavioral burden. It does disclose the payment model ($0.003 USDC via x402 per tools/call, multi-chain), the free-trial quota (3 unpaid calls/day per IP) and that invalid input is rejected without charge, which is genuinely useful. However it is silent on the core behavioral contract for a detector: failure modes, latency/timeouts, what happens if payment fails mid-call, rate limits beyond the trial, and whether results are cached or deterministic. For a security-critical tool with zero annotation coverage, that is a real gap.

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 purpose in the first sentence, followed by return shape and then commercial terms, which is a sensible order. The nested parentheticals around chains, payment channel and free-trial mechanics ('(HTTP: header X-Free-Trial: 1; MCP: automatic when no payment is sent)') make it dense and slightly hard to parse, but every clause carries information.

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?

No output schema exists, and the description compensates by naming the return fields (verdict, score, matched rules, asOf, source). Payment and trial mechanics are fully spelled out for a paid tool. The one omission is any explanation of the redaction parameters, which sit oddly against the described purpose and are only covered by the schema.

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 text, style, types and redact, making 3 the baseline. The description does not mention any parameter, and notably does not reconcile the schema's redaction-oriented parameters (style/mask, pii/secrets types, redacted_text) with the stated prompt-injection purpose, leaving an agent to infer how they relate.

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 ('Detect prompt injection and jailbreak attempts') plus the exact situations it targets (web pages, emails, tool output) and the timing ('before an agent reads it'). An agent can tell exactly what this tool does and when in a pipeline it belongs, 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?

Gives clear usage context via 'before an agent reads it' and enumerates the untrusted-input sources it covers. It does not name exclusions or alternatives, but no sibling in the listed catalog plausibly competes with a prompt-injection detector, so the guidance gap is minor.

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