Skip to main content
Glama

AgentWork Web Evidence

Prompt-injection check

prompt_injection_check
Read-onlyIdempotent

Prompt-injection check: scan untrusted text before your agent reads it, $0.003. Flags instruction overrides, role/system-tag spoofing, jailbreak personas, prompt-leak requests, data and wallet exfiltration, concealment, invisible Unicode tag smuggling and base64-hidden payloads. Returns verdict (clean / suspicious / injection), score and the flagged excerpts. Pattern rules plus a local Qwen3-4B classifier on the flagged spans (8 s cap; falls back to rules-only and says so in engine). $0.003 on Base ($0.006 Algorand); a screening aid, not a guarantee. No account. Price (USDC): Base single $0.003; Algorand single $0.006. Paid per call with x402 v2 (params._meta["x402/payment"]).

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_injection_check"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesUntrusted text to screen (web page, email, tool output, document). Up to 200,000 characters.
max_signalsNoMaximum flagged signals returned

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?

Annotations already declare read-only, idempotent, non-destructive, but the description goes well beyond them: it discloses the return payload (verdict, score, flagged excerpts), the detection architecture (pattern rules plus a local Qwen3-4B classifier on flagged spans), the 8-second cap and the rules-only fallback signalled via 'engine'. It also states cost, payment mechanism (x402 v2) and an explicit reliability caveat — exactly the context annotations cannot carry.

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 purpose then detection categories, and every clause carries information an agent needs. The only waste is the price being stated twice ('$0.003' up front and again in the price sentence), a minor redundancy in an otherwise dense single paragraph.

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?

With no output schema, the description carries the burden of describing results and does so fully: verdict values, score, flagged excerpts, and engine fallback reporting. Cost, payment path and the accuracy disclaimer close the remaining gaps for a paid, single-purpose screening tool.

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 'text' and 'max_signals' are already documented with bounds. The description names the sorts of inputs to screen (web page, email, tool output) but adds no syntax, format or budget guidance for the parameters, so the schema is doing 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?

Opens with a specific verb+resource ('Prompt-injection check: scan untrusted text') plus the scope constraint 'before your agent reads it', then enumerates exactly what gets flagged. An agent can tell this screens text for injection, distinguishing it from siblings like sanctions_screen or web_read 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 phrase 'scan untrusted text before your agent reads it' gives a clear trigger condition and even a position in the workflow (pre-read). It lacks an explicit exclusion or a named alternative for trusted input, but the untrusted/trusted distinction plus the 'screening aid, not a guarantee' caveat effectively sets the usage boundary.

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