Skip to main content
Glama

get_page_text

Extract visible page text from a specified tab or the current tab, prioritizing article/main content and falling back to body text.

Instructions

Extract the visible text of the page (article/main content first, falls back to body innerText).

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

Input Schema

NameRequiredDescriptionDefault
tabIdNoTab ID to target. Omit to act on the current tab.

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?

With no annotations, the description carries the full burden, and it does disclose a meaningful behavior: content is taken from article/main first with a fallback to body innerText, so the agent knows the output may vary by page structure. It omits other relevant traits such as whether hidden or off-screen text is included, iframe handling, truncation, and error behavior for invalid tab IDs.

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?

One sentence, front-loaded with the verb and resource, with the parenthetical reserved for genuinely useful fallback detail. No filler.

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?

For a simple one-optional-param read tool with no output schema or annotations, the definition covers what is extracted and how the target region is chosen. Remaining gaps (return type, truncation, frame handling) are modest for this complexity level.

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?

The single optional tabId parameter is fully documented in the schema (100% coverage), including the 'omit to act on current tab' default. The description adds nothing about it, so the schema baseline of 3 applies.

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 a specific verb and resource: 'Extract the visible text of the page', and even scopes what 'visible text' means. It does not, however, distinguish itself from the sibling 'read_page', which an agent could easily confuse with this tool.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use or when-not-to-use guidance, and no alternative is named despite 'read_page', 'javascript_tool', and 'find' all being plausible overlaps. The only hint is the implicit 'use this to get text'.

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