Skip to main content
Glama

Document outline (headings index)

document_outline
Read-only

Return the heading tree (table of sections) of an indexed document, so you can explore its structure before fetching pages. Each entry has the heading text, its full path, depth and first page: pass the page to fetch as "#p" to read it.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
documentYesExact source file name as returned by `search` / `search_eu_textile_regulations` (e.g. "CELEX-02024R1781-20240628.pdf").

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare this is read-only and non-destructive; the description adds useful behavioral context by stating the output is the heading tree, not page content, and that each entry includes text, path, depth, and first page. No contradiction with annotations.

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 focused sentences, with the main purpose front-loaded. The fetch composition note is dense but earns its place because it tells the agent exactly how to use the result.

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

Completeness5/5

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

For a single-parameter, read-only tool with an output schema, the description covers purpose, output structure, prerequisite (indexed document), and integration with fetch. Nothing essential is missing.

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?

The schema already documents the document parameter fully (exact source file name from search, with an example), so the description adds little beyond that. A baseline of 3 is appropriate because schema coverage is 100%.

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 the heading tree (table of sections) of an indexed document'. It clearly frames the tool's role as structure exploration, distinguishing it from sibling fetch and search tools.

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?

Provides clear usage context: explore the heading tree before fetching pages, and passes returned page references to fetch with explicit syntax. It does not spell out when-not-to-use or name alternative tools as exclusions.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A4.2/5.0
Disambiguation4/5

Most tools have clearly distinct purposes: semantic answering, browsable search, exact-string lookup, outline navigation, full-page fetch, about, and feedback. The main ambiguity is between `search` and `search_eu_textile_regulations`, but their descriptions do separate result-list browsing from cited passage answers.

Naming Consistency3/5

All names use lowercase snake_case, but the pattern is mixed: `fetch` and `search` are one-word verbs, `document_outline` is a noun compound, `about_reecopedia` begins with a preposition, and the rest use verb_object naming. The inconsistency is readable but not predictable enough to infer tool behavior from names alone.

Tool Count5/5

Seven tools is a well-scoped size for a specialized regulatory-corpus reader: Q&A, browse, exact search, outline, fetch, about, and feedback each earn their place. There is no redundancy or bloated surface.

Completeness5/5

The toolset covers the full retrieval lifecycle: ask a regulatory question, browse results, find exact strings, inspect document structure, fetch full pages, and report bad answers for curation. No obvious dead ends or missing operations are apparent for the stated domain.

Resources