Skip to main content
Glama

page_text

Extract the visible text of a web page or a specific element to read its content without taking a screenshot.

Instructions

Return the visible text of the page (or of an element) so the page can be read without a screenshot.

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

Input Schema

NameRequiredDescriptionDefault
selectorNobody
max_charsNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.5

TDQS

B3.1/5.0
Behavior2/5

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

With no annotations at all, the description carries the full behavioral burden and discloses very little. Read semantics are implied by "return the visible text", but nothing says what happens when the selector matches nothing, how the max_chars default of 4000 truncates output, or whether text is trimmed or includes hidden nodes.

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?

A single sentence with zero filler, front-loading the action and resource before the rationale clause. Nothing could be removed without losing information.

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?

The existence of an output schema removes the need to describe return values, and the tool is simple with two optional parameters. However, leaving both parameters undocumented in schema and prose, plus the undisclosed truncation semantics of max_chars, leaves real gaps for an agent deciding how to call it.

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 description coverage is 0%, so both parameters depend entirely on the description, which never mentions selector or max_chars by name. The parenthetical "(or of an element)" only faintly hints at selector targeting, and truncation behavior for max_chars is unaddressed.

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?

"Return the visible text of the page (or of an element)" states a specific verb and resource, and the trailing clause distinguishes it from the sibling screenshot tool as a reading alternative. It stops just short of naming that sibling explicitly, so it is clear but not maximally differentiating.

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 phrase "so the page can be read without a screenshot" implies when to prefer this over screenshotting, but it is inference rather than an explicit rule. There is no stated when-not case, no mention of the DOM-read alternatives, and no guidance on when the element variant is appropriate.

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