Skip to main content
Glama

outline

Build a document heading tree with stable node IDs, title paths, and page, slide, chapter, or Markdown byte ranges; pass a node ID to read that section.

Instructions

Return a document heading tree with stable node ids, title paths, page/slide/chapter ranges and Markdown byte ranges. PDF bookmarks or detected headings, Word headings, PowerPoint slides, EPUB chapters and headings, HTML and Markdown. format json (default) or tree. Pass a node id to read to fetch that section.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "source": "<source>"
    },
    "name": "outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
ocrNoOCR image-only pages; false by default. Accepts booleans or auto/vlm/tesseract.
formatNojson (default) or tree.
imagesNoEmbedded images: none (default) or refs. Match this option in node reads.
sourceYesFile path or http(s) URL.
timelineNoLocal video only: outline this bounded playback window from metadata (cuts, chapters, subtitles). No ASR, OCR or captions run.
revisionsNoWord revisions: markup (default), accept or reject. Match node reads.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.1

TDQS

A4.1/5.0
Behavior4/5

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

With no annotations, the description carries the load and does so well: 'Return' signals a non-mutating operation, and it discloses that returned node ids are stable and reusable for later reads, which is the key behavioral contract. It omits cost/latency or size limits and says nothing about OCR behavior for image-only pages, leaving those to the schema.

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?

Three sentences, front-loaded with what is returned, then supported formats, then options and the handoff to 'read'. The middle format list is telegraphic ('Word headings, PowerPoint slides, EPUB chapters...') but each item earns its place by telling the agent which documents work; no filler sentences.

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 6-parameter tool with no output schema, the description does the important job of describing the return shape (tree with node ids, paths, ranges), which is exactly what the schema cannot convey. Remaining gaps — OCR, images, timeline, revisions behavior — are fully documented in the 100%-covered schema, so the definition is nearly complete as a package.

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 the schema already documents source, ocr, images, timeline, revisions and format including defaults. The description restates the format option ('json (default) or tree') without adding anything, and does not touch the OCR/timeline/revision semantics, so it only matches rather than exceeds the baseline.

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 ('Return a document heading tree') and immediately enumerates what the tree contains: stable node ids, title paths, page/slide/chapter ranges, Markdown byte ranges. It also lists the source formats covered (PDF bookmarks/detected headings, Word headings, PPT slides, EPUB chapters, HTML, Markdown) and routes section-fetching to the 'read' sibling, so an agent can separate it from siblings without opening any 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 clear workflow context: outline first to get the tree and stable node ids, then pass a node id to 'read' to fetch that section, plus a default for 'format'. It stops short of explicit when-not guidance (e.g. vs. 'inspect' or 'search'), but the intended position in the workflow is unmistakable.

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

Deploy Server

Other Tools