Skip to main content
Glama

read

Extracts a compact list of interactive elements, refs, and headings from browser pages, with tree/all/text/find modes and offset pagination for navigation and inspection.

Instructions

Page as compact list: interactive elements with refs (e5) + headings. mode: tree (default) | all (adds text) | text (plain text) | find (q: words or css:selector). Paginate with offset.

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

Input Schema

NameRequiredDescriptionDefault
qNo
maxNomax chars (4000)
refNoonly this subtree
tabNo
modeNo
offsetNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.4/5.0
Behavior3/5

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

No annotations exist, so the description carries the full disclosure burden. It usefully describes the output shape (refs + headings), mode semantics, and pagination via offset, but says nothing about read-only safety, error behavior, or interaction between ref scoping and offset.

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?

Very dense and front-loaded: output shape first, then modes, then pagination. The telegraphic style is efficient for an agent, though a couple of fragments could be slightly clearer.

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 6-parameter, annotation-free tool with no output schema, the description covers output shape, modes, and pagination reasonably well. It is still missing the tab parameter and guidance on sibling selection, so it is adequate rather than complete.

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

Parameters3/5

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

Schema coverage is only 33%, so the description must compensate; it meaningfully defines mode values, q as words or a CSS selector in find mode, and offset for pagination. It leaves tab undocumented and only lightly touches ref semantics and max, so compensation is partial.

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 the specific resource and shape of the result: a compact page list of interactive elements with refs plus headings. The verb is implied rather than explicit and the generic name 'read' means the description has to do the differentiation work, which it largely does by naming refs and headings.

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?

Explains the mode options, that tree is the default, and that find requires q or a CSS selector, which implicitly guides selection. It does not say when to prefer this over nav, tabs, or shot, nor explicitly tell the agent to read first to obtain refs before acting.

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