Skip to main content
Glama

Get Page Outline

get_page_outline
Read-only

Retrieve a page's headings and section structure to locate specific sections in long pages before reading or editing them.

Instructions

The headings of a page with their level and size, without the body. Use it to find a section of a long page, then get_section to read it and replace_section to change it. Section 0 is the text before the first heading.

Input Schema

NameRequiredDescriptionDefault
pageYesPage id, slug id or Docmost page URL.

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.2.0

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so the description only needs to add cost/behavior context, which it does by emphasizing 'without the body' (cheap scan) and explaining that section 0 is the pre-heading text. It does not say whether the outline is truncated or paginated for very long pages, which is the remaining behavioral gap.

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?

Three short sentences, front-loaded with what is returned, followed by the decision guidance and one indexing caveat. No filler or redundant restatement of the title.

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?

An output schema exists, so return values need not be explained, and the description still supplies the key indexing hint about section 0. Only the pagination/truncation behavior for very large outlines is unaddressed.

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?

There is only one parameter and its schema description already covers all accepted forms (page id, slug id, Docmost URL) at 100% coverage. The description adds nothing about the page argument beyond what the schema states, so the baseline 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 ('headings of a page') plus what is excluded ('without the body') and the per-heading fields (level and size). It is clearly separable from get_section, which returns body content, and from get_page, which returns the whole page.

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

Usage Guidelines5/5

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

Explicitly names the workflow: use this to locate a section of a long page, then get_section to read it and replace_section to change it. Both the trigger condition ('long page') and the follow-on alternatives are given, leaving nothing to inference.

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