Skip to main content
Glama

Read the text of a page (or one element)

qa_read

Reads the rendered text of a page or element, including long content like one-time codes, error paragraphs, and invoice numbers that snapshot refs truncate. Returns visible innerText only, capped and read-only.

Instructions

Return the RENDERED text of the page under test, or of a single element named by a qa_snapshot ref or a CSS selector. This is the companion to qa_snapshot: that one maps what you can ACT on (roles, names, refs) and caps every name at 80 characters, so anything longer — a one-time code in an email, an error paragraph, a generated invoice number — is invisible to it. Uses innerText, so hidden branches and a mail thread's collapsed quoted history stay out. Read-only: it executes nothing and returns text, capped (default 4000 chars, max 20000).

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

Input Schema

NameRequiredDescriptionDefault
refNoA ref from qa_snapshot (e.g. "e12") — preferred when you already have one
tabIdNoTarget tab (from qa_tabs); omit for the active tab
frameIdNoWhich frame to ask, from qa_frames. Omit for the page itself. A payment form, an SSO step or an embedded widget usually lives in a frame of its own, and a cross-origin one can only be read from inside it.
maxCharsNoCap the returned text (default 4000, max 20000)
selectorNoCSS selector; omit both to read the whole page body

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.86.2

TDQS

A4.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full disclosure burden and does it well: read-only, executes nothing, uses innerText so hidden branches and collapsed quoted mail history are excluded, and output is capped (default 4000, max 20000). It stops short of describing the return shape (plain string vs. structured object) or what happens when a selector matches multiple elements.

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?

Three dense sentences, front-loaded with purpose and followed by the differentiation and behavioral constraints. Every clause (the 80-char cap, innerText, the 4000/20000 limits) conveys information an agent needs; nothing is restated padding.

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 definition covers the essentials: what text is returned, how it is derived, and how it is bounded. It is nearly complete for a read tool, with only the concrete return payload shape left implicit.

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 100% with rich per-parameter descriptions, so the schema already carries most meaning. The description adds only the framing that a ref comes from qa_snapshot and that a selector identifies a single element; precedence when both ref and selector are supplied, and the default-to-whole-body behavior, are left to the schema.

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 — 'Return the RENDERED text of the page under test, or of a single element' — and immediately distinguishes itself from qa_snapshot by scope (text vs. actionable map). An agent can pick between the two without opening either 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?

Explicitly frames qa_snapshot as the alternative and gives the selecting condition: snapshot caps names at 80 characters, so long content (one-time codes, error paragraphs, invoice numbers) requires this tool. The inverse guidance — use snapshot for roles/names/refs to act on — follows directly from that framing.

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