Skip to main content
Glama

page_outline

Retrieve a page's structure—sections, landmarks, headings, and nav links with positions and sizes—to map unfamiliar or long pages before capturing screenshots of specific sections.

Instructions

Get page structure: all sections, landmarks, headings, and nav links with positions and sizes. Use this FIRST on unfamiliar or long pages before screenshotting specific sections.

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

Input Schema

NameRequiredDescriptionDefault
urlNoPage URL. Auto-detected if omitted.
reloadNoForce reload. Default: true on first call.
viewportNoViewport. Default: desktop.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the behavioral burden. It does disclose the shape of the returned structure, which is genuinely useful, but it says nothing about the fact that the tool navigates the browser to the URL or that reload defaults to true on first call, both of which are side effects an agent should know about.

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?

Two sentences with no filler: the first defines the output, the second gives the ordering advice. Both are front-loaded and every clause earns its place.

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 three-optional-parameter read tool with no output schema and no annotations, the description is largely sufficient: it explains what comes back and when to reach for it. The only material omission is the navigation/reload side effect, which the schema hints at but the description never surfaces.

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%, so url, reload, and viewport are already documented, including the auto-detection default and the viewport enum. The description adds no syntax or format detail beyond the schema, so the baseline of 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ("Get page structure") and enumerates exactly what the result contains: sections, landmarks, headings, and nav links with positions and sizes. The closing clause distinguishes it from the screenshot-oriented siblings, so an agent can tell what it returns without opening the schema.

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?

Gives a clear triggering condition -- "Use this FIRST on unfamiliar or long pages" -- and names the alternative activity it should precede (screenshotting specific sections). It does not state explicit exclusions or when another structural tool such as dom_inspect would be preferred, so it stops short of full when/when-not guidance.

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