Skip to main content
Glama

Lookup Kit

injection_check

Read-only

Prompt injection detection, scan untrusted text before an AI agent reads it. Scan text (a web page, email, document or tool output) for known prompt-injection patterns before giving it to an AI agent: instruction overrides, fake system tags, jailbreak phrases, data-exfiltration and payment instructions, hidden characters. Returns a 0-100 risk score, a level and each matched pattern. It is a rule-based pattern check and CAN MISS attacks; it is not a guarantee of safety. Price: $0.002 per call (x402, USDC on Base).

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

Input Schema

NameRequiredDescriptionDefault
textYes

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?

Goes well past the readOnlyHint/openWorldHint annotations: it discloses the detection technique (rule-based patterns), the categories matched, the return shape (0-100 risk score, level, matched patterns), a candid false-negative warning, and a per-call price with payment rail. The cost and the 'CAN MISS attacks' caveat are exactly the kind of context an agent cannot get from structured fields.

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 and compression of the important caveats and pricing into two sentences. The opening clause is partially restated ('Prompt injection detection... Scan text... before giving it to an AI agent'), a small redundancy that costs little.

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?

For a single-input scan tool with no output schema, it covers purpose, input sources, return values, limitations, and cost. The only material omission is the 8000-character input cap, which matters for anyone scanning a long document.

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

Parameters4/5

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

With one parameter and 0% schema description coverage, the description carries the burden and does clarify what the 'text' argument should contain by listing example sources. It omits the 8000-character maximum, which is the one schema constraint a caller could trip over, keeping it from a 5.

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 ('prompt injection detection, scan untrusted text') and scopes it to the moment before an agent consumes text. It is trivially distinguishable from sibling validators like url_check or email_check, which check different artifacts.

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 clear trigger condition ('before giving it to an AI agent') and enumerates the input sources it applies to (web page, email, document, tool output). It does not explicitly state when not to bother — e.g., that trusted or self-authored text needs no scan — but the 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.

Resources