Skip to main content
Glama

Screens one text for prompt-injection patterns in English

agent_intel_prompt_injection_firewall
Read-only

Screens one text for prompt-injection patterns in English (instruction override, role or system-prompt extraction, jailbreak personas, hidden or encoded instructions) using a fixed rule list based on OWASP LLM01 categories. Returns HIGH/MEDIUM/LOW/NONE, each match, and the text with matches removed. A rule list misses rewording and other languages: treat NONE as no known pattern, not as safe. Price: $0.002 per successful call, paid with x402 (USDC on Base, Solana and 10 more networks); failed calls are not charged.

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

Input Schema

NameRequiredDescriptionDefault
textYesThe text to screen, 1 to 20000 characters

Output Schema

NameRequiredDescriptionDefault
noteNo
riskNo
sourceNo
matchesNo
checkedAtNo
cleanedTextNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint annotations, it discloses the detection basis (fixed rule list, OWASP LLM01 categories), the output shape (severity level, per-match detail, and sanitized text), the false-negative risk, and the exact billing model — $0.002 per successful call via x402 with failed calls free. The cost and failure-charging disclosure is precisely the kind of detail annotations cannot convey for an agent making repeated calls.

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

Conciseness5/5

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

Four sentences, front-loaded with what the tool does, followed by output, caveat, and price in descending order of decision importance. Every sentence carries decision-relevant information; nothing is padding.

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?

For a single-parameter screening tool, the definition covers detection method, output interpretation, known blind spots, language scope, and cost model. Even though an output schema exists, the severity semantics (NONE ≠ safe) are an interpretive point the schema alone would not supply.

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% and the single `text` parameter is already documented with its 1–20,000 character bound, so the schema does the heavy lifting. The description only adds the meaningful constraint that screening is English-only, which affects how the caller should interpret results but not how to format the argument. Baseline 3 is appropriate.

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?

"Screens one text for prompt-injection patterns in English" gives a specific verb (screens), resource (one text), and scope (English, single-text) — and it enumerates the pattern families covered. No sibling in the catalog does injection screening, so the agent can route here without ambiguity.

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 description establishes the use context (untrusted text screening) and explicitly warns about the conditions where the tool under-reports: "A rule list misses rewording and other languages: treat NONE as no known pattern, not as safe." It does not name a complementary or alternative tool for multilingual/obfuscated cases, so it stops short of full when-to-use/when-not routing.

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