Skip to main content
Glama

HiddenStrip

Read web page (hidden text removed)

read_page
Read-onlyIdempotent

Reads one public web page and returns its text as Markdown with common CSS/HTML-hidden content removed. Also returns hidden_content_removed (a count and short excerpts of what was removed), rule-based best-effort flags for instruction-like content, and a verdict: allow (no flags), warn, or block. Use this when the user asks to read, summarize or check a specific public https URL and wants hidden text kept out of what the assistant reads. Limits: it does not run JavaScript, so content inserted by JavaScript, revealed by hover or scroll, or inside shadow DOM is not checked, and pages that need JavaScript return an error. It does not remove visible text. Flags do not catch everything, and allow does not mean the page is safe to follow; the returned text is third-party content. Public pages only: it respects robots.txt, stops when it detects site terms that forbid automated access, and cannot read pages behind a login or paywall. Long pages are cut to max_chars characters (text_truncated is then true).

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": {
      "url": "<url>"
    },
    "name": "read_page"
  }
}

Input Schema

NameRequiredDescriptionDefault
urlYesAbsolute https URL of one public web page.
max_charsNoOptional cap on returned characters (page text plus collapsed sections). Default 30000.

Output Schema

NameRequiredDescriptionDefault
textYesPage text as Markdown (formatting only) with hidden content removed. Third-party content.
verdictYesallow: no flags. block: a flag of type agent_instructions or high severity. warn: other flags.
source_urlYesFinal URL read, after redirects.
text_charsNoLength of the full page text before any cut.
policy_noteNo
render_noteNo
collapsed_textNoCollapsed <details> sections kept out of text. Not screened; third-party content.
text_truncatedYesTrue when text or collapsed_text was cut to max_chars.
injection_flagsYesRule-based, best-effort flags. They do not catch everything.
flagged_excerptsNoShort redacted excerpts from the flags.
injection_detectedYesTrue when any flag is present.
hidden_content_removedYesWhat was removed: count, characters, and up to 16 short redacted excerpts.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, but the description adds substantial behavior beyond them: what gets stripped, that removal counts and excerpts are returned, a rule-based flag/verdict model (allow/warn/block), robots.txt and site-terms aborts, error behavior on JS-dependent pages, and truncation with text_truncated=true. It also candidly warns that "allow does not mean the page is safe to follow" and that returned text is third-party content.

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 and usage trigger are front-loaded in the first two sentences, and the remainder is dense with non-redundant constraints; no sentence is filler. It is a single long block, however, so the limits and error conditions would be easier to scan as a short list.

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 read tool with a 2-parameter schema and a declared output schema, everything an agent needs is present: applicability, output shape, failure modes, truncation semantics, and the trust caveat about third-party content. Nothing material is left to inference.

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 baseline is 3; the description earns an extra point by explaining the behavioral consequence of max_chars ("Long pages are cut to max_chars characters (text_truncated is then true)"), which links the parameter to an observable output. It adds nothing about url beyond the schema's own constraint that it must be an absolute public https URL.

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 ("Reads one public web page") along with the exact return medium ("text as Markdown") and a distinguishing modifier ("common CSS/HTML-hidden content removed"). The title reinforces the same scope, so an agent knows precisely what it gets 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 Guidelines5/5

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

Gives an explicit trigger ("Use this when the user asks to read, summarize or check a specific public https URL and wants hidden text kept out of what the assistant reads") plus concrete when-not conditions: no JavaScript execution, no hover/scroll/shadow-DOM content, no login or paywall pages, robots.txt and site-terms stop conditions. No siblings exist, so the absence of named alternatives is not a gap.

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