Skip to main content
Glama

get_page_text

Extract visible text from a Firefox page, prioritizing main/article content over the body. Use it to read or summarize page content via FoxBridge.

Instructions

Get the visible text of the page (main/article first, else body).

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

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

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. It does disclose the useful extraction heuristic (main/article first, else body), but says nothing about whether it waits for the page to load, what happens when the page has no main/article/body text, or whether output is truncated — questions that matter for a scraping tool with no safety annotations.

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 short sentence with the resource front-loaded and the extraction priority packed into a parenthetical. No filler, nothing to remove.

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 simple read-only extraction tool with no output schema this is close to adequate, but the undocumented max_chars parameter and the silent truncation behavior leave a real gap. Adding one clause on truncation and the tabId default would make it 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 50%: tabId is documented in the schema, but max_chars has no description anywhere. The description never mentions either parameter, so it does not compensate for the gap — whether max_chars truncates, how, and what the default is remains unknown to the agent.

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?

The description gives a specific verb plus resource ('Get the visible text of the page') and adds a scoping detail about extraction priority (main/article first, else body), so an agent knows exactly what comes back. It stops short of differentiating itself from the sibling read_page, which an agent could reasonably 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 Guidelines3/5

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

Usage is only implied: the phrasing signals 'read text content, not interact with the page', which separates it from click/type/navigate siblings. There is no explicit when-to-use versus read_page, and no statement of when this tool is a poor choice (e.g., when structured DOM or accessibility info is needed).

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