Skip to main content
Glama
Browser MCP Server

Browser MCP Server

get_page_content

Extract visible text from a browser page with token-optimized output (default 4,000 characters) for AI analysis.

Instructions

Get visible text content (token-optimized, default 4000 chars).

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_content"
  }
}

Input Schema

NameRequiredDescriptionDefault
pageIdNo
maxLengthNoMax chars (default: 4000)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.0.0

TDQS

C2.9/5.0
Behavior2/5

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

No annotations are supplied, so the description carries the full behavioral burden. It does disclose two useful traits — visible text only (no markup) and a 4000-character default truncation — but says nothing about whether truncation is silent or flagged, whether a page must already be open/focused, or how pageId omission resolves to a target page.

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?

A single front-loaded sentence with the key constraint (token-optimized, truncation) up front and no wasted words. It is arguably too terse for a tool with no annotations, but there is no filler or redundancy.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

With no annotations, no output schema, and one of two parameters undocumented, the definition leaves real gaps: truncation behavior, target-page resolution when pageId is omitted (it is not required), and return shape. For a simple read tool that is thin, though not broken.

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 50%: maxLength already documents its default in the schema, so the description's 'default 4000 chars' is largely redundant. The undocumented pageId parameter gets no explanation at all — the description never says whether it identifies a tab, defaults to the current page, or where the value comes from.

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 ('Get visible text content') and adds a scope qualifier ('token-optimized, default 4000 chars'), so the agent knows this returns trimmed plain text rather than markup. It does not, however, name or contrast with the obvious siblings get_page_html and get_page_summary, so the distinction is left implicit.

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 'token-optimized' implies a context of use (when you want cheap text rather than full HTML), but there is no explicit when-to-use or when-not-to-use statement and no named alternative. The agent must infer that get_page_html or get_page_summary exist for other needs.

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