Skip to main content
Glama

Get page text

get_page_text
Read-only

Extracts readable plain text from a browser tab, prioritizing main article content so you can read text-heavy pages without clutter.

Instructions

Extract the readable text of the page (prioritising the main article content) as plain text. Ideal for reading articles and text-heavy pages.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "tabId": "<tabId>"
    },
    "name": "get_page_text"
  }
}

Input Schema

NameRequiredDescriptionDefault
tabIdYesTab ID from tabs_context / tabs_create.
max_charsNoMaximum characters (default 100000).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.1.0

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, so safety is covered. The description adds genuine behavioral context beyond that—output is plain text and boilerplate/non-article content is deprioritized—but says nothing about truncation behavior or what is returned when no readable text is found.

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?

Two tight sentences with the core action front-loaded and zero filler or restated title text. The second sentence is somewhat generic but does carry usage 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?

For a simple read-only extraction tool with full schema coverage and no output schema, the description covers purpose and output type adequately. Remaining gaps—empty/unextractable pages, whether links/markup are preserved, and relationship to read_page—leave it only minimally sufficient.

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 description coverage is 100% and both parameters (tabId, max_chars) are documented in the schema with defaults and bounds. The description adds no additional meaning about tabId sourcing or how max_chars affects the extracted result, so the baseline 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 readable text of the page ... as plain text', plus a scoping qualifier that main article content is prioritized. It does not differentiate itself from the sibling read_page, so an agent cannot tell from the text alone which of the two to pick.

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?

'Ideal for reading articles and text-heavy pages' gives a positive usage context, but there is no when-not guidance and no named alternative (e.g. read_page) for pages that are not article-like or that need structured markup.

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