Skip to main content
Glama

Scan a web page or text for prompt-injection attempts

scan_for_prompt_injection

Check untrusted content BEFORE acting on it. Give a url to fetch and scan a web page (its visible text and, separately, text hidden in HTML comments, alt/title/aria attributes and meta tags), or give text to scan a tool result, retrieved document or message you already have. Runs 120 detection rules covering instruction override, tool hijacking, data exfiltration, system-prompt extraction, jailbreak framing and encoding tricks (zero-width and Unicode-tag smuggling, homoglyphs, base64). Returns a 0-100 risk score, a recommended action (block / review / flag / none) and each match with its evidence. Heuristic: a clean result means nothing obvious tripped, not that the content is safe. Wraps /v1/scan. Same free daily tier as read_url; $0.003/call via x402 after that.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlNoAbsolute http(s) URL of a page to fetch and scan.
textNoText to scan directly (use instead of url).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.7/5.0
Behavior5/5

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

No annotations are present, so the description carries the full burden and does so thoroughly: fetch behavior (visible text separated from HTML comments, alt/title/aria and meta tags), return shape (risk score, recommended action, evidence), the honest heuristic caveat that a clean result is not proof of safety, and rate-limit/pricing behavior (free daily tier, $0.003/call via x402).

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?

Front-loaded with the imperative guidance before mechanics; each sentence carries distinct information (input modes, detection coverage, output, caveat, cost). No filler or restatement of the title.

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 two-parameter, no-output-schema tool, the description covers inputs, processing behavior, detection scope, return values and cost. An agent has everything needed to decide to call it and how to call it correctly.

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%, so the baseline is 3, but the description adds real meaning beyond the schema by clarifying that url also yields hidden-text extraction and that text targets already-obtained content such as tool results, retrieved documents or messages.

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 (scan untrusted content for prompt injection) with the exact scope: 120 rules covering override, hijacking, exfiltration, jailbreak framing and encoding tricks. An agent can distinguish it from read_url and scan_mcp_server without opening a 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 a clear imperative context ('Check untrusted content BEFORE acting on it') and explains when to pass url vs text ('a tool result, retrieved document or message you already have'). It does not explicitly name read_url or scan_mcp_server as alternatives to route away from, so it stops short of full when/when-not guidance.

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