Skip to main content
Glama

scan_page

Scan a public URL or pasted HTML for prompt injection hidden in text, comments, attributes, meta tags, structured data, or PDFs, returning severity-rated findings and advice.

Instructions

Check a public web page (url) or pasted HTML (html) for text aimed at AI models (prompt injection).

Returns findings per channel (visible text, hidden elements, HTML comments, attributes and meta tags, structured data, noscript; for a .pdf URL, its page text and its metadata and annotations) with severity (high/medium/low), the pattern kinds and advice. Set fetch_css to also apply the page's own linked stylesheets when deciding what is hidden, and css_any_host to include stylesheets on other hosts (CDNs). Pages that robots.txt disallows for pagevet are not fetched unless ignore_robots is set. Non-public addresses are refused. Pattern matching only: no findings is not proof of safety.

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

Input Schema

NameRequiredDescriptionDefault
urlNo
htmlNo
fetch_cssNo
css_any_hostNo
ignore_robotsNo
include_repetitionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.8/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does so well: it enumerates the channels reported (visible text, hidden elements, comments, attributes/meta, structured data, noscript, plus PDF text/metadata/annotations), the severity scale, and the 'patterns kinds and advice' payload. It also discloses operational constraints - robots.txt disallowance overridable by ignore_robots, refusal of non-public addresses - and a candid limitation that 'no findings is not proof of safety.' Only a note on read-only/non-mutating behavior or rate limits is missing, keeping it at a 4.

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?

Purpose is front-loaded in the first sentence, followed by return shape, then the optional fetch flags, then safety constraints - a sensible ordering with no filler sentences. It is dense but every clause carries information; the multi-line layout is compact for the amount of behavioral detail conveyed.

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?

There is no output schema, and the description compensates by describing what findings look like per channel with severity and advice, plus PDF-specific handling. Fetch gating (robots, non-public addresses) and the false-negative caveat round out a complex tool. The unexplained include_repetition flag is the one thing an agent cannot resolve from any supplied field.

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 0% (bare titles only), so the description must compensate and largely does: it explains url, html, fetch_css ('apply the page's own linked stylesheets when deciding what is hidden'), css_any_host (CDN stylesheets) and ignore_robots. The sixth parameter, include_repetition, is never mentioned, leaving a real gap that prevents a 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource: 'Check a public web page (url) or pasted HTML (html) for text aimed at AI models (prompt injection).' That is far more than a restatement of the name and tells the agent exactly what class of problem it detects. It does not distinguish itself from the sibling check_ai_access, so it falls short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Implied usage is clear from the input alternatives - supply url for a live page or html for pasted content - and the robots.txt and non-public-address notes tell the agent when a fetch will fail. However, there is no explicit statement of when to reach for this tool versus check_ai_access, and no when-not guidance beyond the SSRF/robots refusals.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools