Skip to main content
Glama

read_page

Read the current page as clean Markdown with headings, lists, tables, code, and links, excluding navigation, headers, footers, cookie banners, and hidden elements. Use offsets for long pages.

Instructions

Read the current page: its main content as Markdown, with headings, lists, tables, code and links, and without navigation, headers, footers, cookie banners or hidden parts. The best tool for reading an article, docs or a listing. A long page comes in parts; the text ends with the offset of the next. null when selector matches nothing.

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

Input Schema

NameRequiredDescriptionDefault
linksNo"inline" ([text](url)), "refs" (numbered, listed at the end) or "none".inline
offsetNoWhere the part starts, as the previous part says (with the same `links`).
selectorNoCSS selector of one element; empty for the whole page.
max_charsNoCharacters per part; a longer page comes in parts.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.50-alpha

TDQS

A4.5/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 substantial work: it discloses content filtering (boilerplate stripped), output format, the part-wise pagination model, the offset-chaining convention, and the null return when a selector matches nothing. It omits whether reads are non-destructive, whether dynamic content is awaited, and any rate/permission constraints.

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?

Four short sentences, front-loaded with what the tool returns and what it strips, then usage, then the pagination contract, then the edge case. Every sentence carries information an agent needs; nothing is repeated from the schema.

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?

An output schema exists, so return values need not be explained, and the description instead covers the non-obvious mechanics — extraction scope, pagination continuity, and the null edge case — which is exactly what a four-optional-parameter read tool needs.

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 would be 3, but the description adds real meaning beyond the schema: that parts must be requested with the same `links` mode, that the previous part's trailing `offset` is the continuation token, and that `selector` yields null on no match. These are behavioral couplings the parameter descriptions alone only hint 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?

The description names the specific verb and resource ('Read the current page') and goes further to specify the output form (Markdown) and the extraction semantics (main content with headings, lists, tables, code, links; without navigation, headers, footers, cookie banners, hidden parts). That is enough for an agent to distinguish it from raw-source siblings like read_html or read_text without opening any 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?

It gives a clear when-to-use statement: 'The best tool for reading an article, docs or a listing,' which implicitly steers the agent away from raw-HTML/text or snapshot-style siblings. It does not name an explicit exclusion or state when a sibling would be preferable, so it stops short of the top band.

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