Skip to main content
Glama

Extract page text

browser_extract_text

Extract visible page text (up to 20,000 characters) with URL, title, and word count to turn web content into readable data for analysis.

Instructions

Extract the visible text of the current page (truncated to 20,000 characters) with URL, title, and word count.

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

Input Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.3-alpha.1

TDQS

A3.5/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 20,000-character truncation cap and the returned fields, which is genuinely useful, but says nothing about permission/auth needs, behavior on frames or hidden elements, what happens on a blank page, or whether the call has any side effects.

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 front-loaded sentence with no filler; the truncation limit and return fields are packed into one clause each. Nothing is repeated from the schema and nothing could be cut without losing information.

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 zero-parameter read tool with no output schema, the description covers the essential contract: what it reads, how much it reads, and what metadata comes back. Only edge-case behavior (empty pages, iframes, dynamic content) is unaddressed, which is a minor gap at this complexity level.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The tool takes zero parameters, so there is nothing for the description to disambiguate; baseline 4 applies. The mention of the 20,000-character limit is a fixed behavior rather than a parameter, but it usefully sets expectations for output size.

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 ('Extract') and resource ('the visible text of the current page'), and even names what is returned (URL, title, word count). An agent can distinguish it from screenshot/click/navigate siblings, though it does not explicitly contrast with browser_snapshot, which also reads page content.

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 implied by 'current page' — the page must already be loaded, so this follows navigation. There is no explicit when-to-use/when-not guidance and no mention of browser_snapshot as the alternative for structured DOM data, leaving the choice between the two to inference.

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