Skip to main content
Glama

Prompt-injection scanner

prompt-inject-scan
Read-only

Scans untrusted text (web pages, emails, tool output) for prompt-injection patterns before it reaches your agent; returns a risk score and the hits. Returns { risk: none|low|medium|high, score, hits: [{ rule, weight, match, index }] } Price: 1 credit (1 credit = 1 US cent) per successful call; input that does not match the schema is rejected before billing.

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-inject-scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
textYesUntrusted text, up to 100,000 characters.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Goes well past the annotations (readOnlyHint, openWorldHint=false) by disclosing the return shape inline, the cost model (1 credit = 1 US cent per successful call), and the billing guarantee that schema-invalid input is rejected before charging. For a tool with no output schema, that is exactly the missing behavioral context an agent needs to decide whether to call it repeatedly.

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?

Two sentences: the first front-loads purpose and timing, the second packs return shape and pricing. No filler, no restatement of the name or title, and the inline response shape is presented compactly rather than as prose.

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 one-parameter read-only scanner with no output schema, nothing material is absent — input constraints come from the schema, return fields are spelled out in the description, and the cost/billing behavior is explicit. An agent has everything needed to call it correctly and to reason about cost.

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?

Schema coverage is 100% and already documents the single `text` parameter with length bounds, so the baseline is 3. The description earns the extra point by characterizing what kind of text belongs there (untrusted, externally sourced: pages, emails, tool output), which the schema's generic "Untrusted text" wording only gestures at.

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 ("scans untrusted text ... for prompt-injection patterns") and pins down the input domain with concrete examples (web pages, emails, tool output). The framing "before it reaches your agent" implicitly separates it from a prompt-authoring linter like prompt-lint, so an agent can route 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 situational guidance: run it on untrusted content before that content enters the agent's context. It does not state when to skip the call or name the adjacent tool (e.g. prompt-lint) as an alternative, so it stops short of explicit when/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