Skip to main content
Glama

read_page

Get an indented accessibility tree of a page and tag interactive elements with references for clicking, typing, or filling forms.

Instructions

Read the page as an indented accessibility-style tree. Interactive elements get [ref_N] tags for click/type/form_input.

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
tabIdNoTab to act on. Omit for the active tab.
filterNo
max_charsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations, the description must carry the behavioral burden; it does disclose the output format and that interactive nodes are tagged with refs, which is meaningful. It is silent on truncation, whether refs are stable across calls, and whether the read is side-effect free, which matters for a page-reading tool.

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?

Two compact sentences with the primary purpose front-loaded and no filler. The second sentence is terse enough that the ref/action linkage takes a moment to parse.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 3-parameter read tool with no annotations and no output schema, the description covers the return format adequately but leaves filter and max_chars behavior, and any truncation semantics, unexplained. It is adequate but not complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters2/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is only 33% (only tabId is documented). The description never mentions the 'filter' enum (all vs interactive) or what max_chars does — presumably truncation — so an agent cannot tell how to control output size or scope. The [ref_N] sentence hints at the interactive filter but does not explain the parameter.

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?

Names a specific verb and resource ('Read the page') and specifies the return shape ('indented accessibility-style tree') plus the [ref_N] annotation scheme. It does not explicitly contrast itself with the sibling get_page_text or screenshot, so an agent must infer which read variant it wants.

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?

The mention that refs feed click/type/form_input implies the intended use case (fetching refs before interaction), which is useful implied guidance. There is no explicit when-to-use vs get_page_text/screenshot, and no statement of when not to call it.

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