Skip to main content
Glama

get_page_markdown

Read-onlyIdempotent

Extract page content as clean, hierarchical markdown for reading articles, results, and dashboards. Optionally focus on a specific section with a CSS selector and cap output length.

Instructions

[Agent Browser] Get page content as a structured markdown-like text. Use this to READ page content (articles, results, dashboards) - not just interactive elements. Returns headings, paragraphs, lists, and data in a clean hierarchical format. Optional selector to focus on a specific section (CSS selector only, e.g. '#results', '.content'). max_length limits output size.

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

Input Schema

NameRequiredDescriptionDefault
selectorNo
max_lengthNo

Output Schema

NameRequiredDescriptionDefault
dataNo
hintsNo
messageNo
successNo
suggestionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, non-destructive, closed-world behavior, so the bar is lower. The description still adds useful behavior: the output is hierarchical headings/paragraphs/lists, and max_length truncates output size, which is a real behavioral trait not encoded anywhere else.

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?

Five short lines, front-loaded with the core purpose, then usage, then return shape, then the two parameters. Slight overlap between 'not just interactive elements' and 'Returns headings, paragraphs, lists' keeps it from being maximally tight.

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?

With an output schema present, return-value details are not required, and both optional parameters are described, so an agent can call this correctly. Only the truncation/oversize behavior is left unstated for a tool whose main risk is large output.

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?

Schema description coverage is 0%, so the description must carry the load, and it does: selector is constrained to CSS syntax with concrete examples ('#results', '.content') and max_length is explained as an output-size cap. It does not say what unit max_length uses or what happens when truncation occurs, leaving a small gap.

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+resource ('Get page content as a structured markdown-like text') and clarifies the scope versus interactive-element tools. It never names a sibling (e.g. 'text' or 'get_accessibility_tree'), so the differentiation is implicit rather than explicit.

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

Usage Guidelines4/5

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

'Use this to READ page content (articles, results, dashboards) - not just interactive elements' gives a clear positive-use context and a negative exclusion. It stops short of naming a concrete alternative tool for the excluded case.

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