Skip to main content
Glama

prompt injection scan

prompt_injection_scan
Read-only

Scan content before your model reads it. Give text or a URL (web page, email, document, tool output, up to 2 MB): pattern detectors for instruction overrides, role hijacks, text addressed to the AI, exfiltration and secrecy demands, hidden HTML/CSS text, invisible Unicode, encoded payloads and tool-call coercion, plus a model read that quotes each attack and its goal. Verdict clean / suspicious / unsafe with handling advice. $0.006; pass deep=false for patterns only. Costs $0.006 USDC per call (x402).

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "prompt_injection_scan"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlNo
deepNomodel review (default true)
textNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations only declare readOnlyHint/openWorldHint, and the description adds substantial behavioral context they cannot: a 2 MB input ceiling, the difference between pattern-only and model-review modes, the shape of the result (verdict clean/suspicious/unsafe plus handling advice), the per-call cost and x402 payment requirement.

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?

The purpose and the call-to-action are front-loaded, and the middle detector list earns its length by telling the agent exactly what classes of attack are covered. It is a single dense paragraph, so the cost/verdict details at the tail are slightly buried, but there is little wasted text.

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 still conveys the return contract (three-level verdict plus handling advice), the cost model, the payment mechanism, and the mode switch — everything an agent needs to decide, call, and interpret this tool.

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 description coverage is only 33%, so the description must compensate, and it does: it explains that url/text are the content payloads, that input can be a web page, email, document, or tool output up to 2 MB, and that deep=false yields patterns only, clarifying the schema's terse 'model review (default true)'.

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?

The opening sentence states a specific verb and resource with scope: 'Scan content before your model reads it,' then enumerates exactly what is detected (instruction overrides, hidden text, invisible Unicode, tool-call coercion). An agent can distinguish this from neighbors like moderate, email_risk, or html_sanitize purely from the text.

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?

It gives a clear situational trigger — run this before the model reads untrusted content — and names the accepted input shapes (text or URL: page, email, document, tool output). It stops short of naming a sibling alternative or an explicit when-not-to-use condition, so it is strong context without full 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