Skip to main content
Glama

Get Toc

get_toc

Map of the instruction documents available to you: one entry per document with a one-line summary of what it covers and how to use it. Small documents list their sections inline (id, title, summary); large ones show a section count and how to expand them. Call this at the start of a conversation and again whenever the conversation moves to a topic or system you haven't checked guidance for. Cheap; safe to call repeatedly.

In a large collection the map is condensed (document lines, titles, or just an overview) and says so; then pass query.

query: what you are about to do (e.g. "checking a product's eligibility rules before an application"). Lists only the documents relevant to it, best first — the map for the task at hand.

document_id: pass a document's id (as shown in the map) to list every section of that one document. Do this to browse a document you need to read through. To find a specific rule, identifier, error code or table, call search_instructions instead — it is cheaper than expanding a large document and reading its section list.

Ids in the output are short prefixes; pass them as-is to get_section or get_toc.

Input Schema

NameRequiredDescriptionDefault
queryNo
document_idNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and mostly meets it: it discloses cost ('Cheap; safe to call repeatedly'), that output is condensed in large collections and self-announces this, and that ids are returned as short prefixes usable as-is elsewhere. It does not cover failure modes or error behavior, so it falls short of a 5.

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?

Front-loads the core definition and keeps each parameter block focused on a single use case. It is longer than most definitions but nearly every sentence adds routing or behavioral information; the final line about short prefixes is slightly redundant given the earlier mention of ids.

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?

An output schema exists, so return values need not be explained, yet the description still conveys the shape and variability of the map (inline sections vs. section counts vs. condensed overview). For a two-parameter, zero-required navigation tool, an agent has everything needed to call it correctly.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/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 compensate, and it does: it explains what query should contain ('what you are about to do') with a concrete example, and that document_id takes an id shown in the map to list that document's sections. Both optional parameters' semantics and interaction with the map output are fully specified.

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?

Opens with a concrete metaphor-plus-definition of the resource ('Map of the instruction documents available to you') and specifies exactly what an entry contains. It is clearly distinguishable from get_section (section listing) and search_instructions (rule lookup) without opening either schema.

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?

Gives explicit when-to-use ('Call this at the start of a conversation and again whenever the conversation moves to a topic or system you haven't checked guidance for') and names the alternative for the adjacent task ('To find a specific rule, identifier, error code or table, call search_instructions instead') with the reason it is preferable.

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.

Resources