Skip to main content
Glama

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

TableJSON Schema
NameRequiredDescriptionDefault
queryNo
document_idNo

Output Schema

TableJSON 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 disclosure burden and does well: it advertises cost ('Cheap; safe to call repeatedly'), describes output variability (small docs inline vs large docs condensed, and that the output 'says so'), and explains how to widen results. It stops short of mentioning auth/permission requirements or rate limits, but covers the operationally relevant traits.

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?

Purpose and usage are front-loaded before parameter guidance, and each paragraph earns its place with concrete, actionable detail. It is dense and prose-heavy rather than scannable, but there is little true redundancy.

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, yet the description still orients the agent on the shape of the result (entries, inline sections vs counts, condensed collections) and covers both parameters plus sibling routing. Nothing needed to invoke this correctly is missing.

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 coverage is 0% and both params are undescribed in the schema, so the description must compensate and it does: query is explained as 'what you are about to do' with a concrete example and its return semantics ('best first'), and document_id is explained as listing every section of one document with a pointer to search_instructions for narrow lookups. It also clarifies the id format (short prefixes, pass as-is).

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 resource ('map of the instruction documents available to you') and exactly what each entry contains (one-line summary, section lists or counts). It explicitly distinguishes itself from search_instructions and get_section by naming what each of those is for, so an agent can route correctly 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 Guidelines5/5

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

Gives explicit when-to-call ('at the start of a conversation and again whenever the conversation moves to a topic... you haven't checked guidance for') and a clear when-not path ('To find a specific rule... call search_instructions instead — it is cheaper'). The document_id branch names its own alternative behavior for browsing a whole document.

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