Skip to main content
Glama

Document outline

get_outline
Read-only

Retrieve a LaTeX project’s outline with headings, file:line locations, included files, and missing-file notes to locate structure before reading or editing.

Instructions

Outline of a LaTeX project (parts, chapters, sections, …) following \input/\include from the main document, with file:line for each heading and a note on included files that are missing. Read-only. Use it to see a paper's structure or find where a section lives; then get_section reads one section, or read_file reads the lines.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "get_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
projectNoProject name, id or Overleaf URL. May be omitted when exactly one project is pinned.
rootFileNoStart from this file instead of the project's main document

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.1

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint and openWorldHint, so 'Read-only' repeats structured data. The description earns credit elsewhere: it discloses recursive \input/\include traversal, that each heading carries file:line, and that missing included files are reported. It does not discuss ordering, truncation, or behavior on very large projects.

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?

Two tightly packed sentences with the return content first and the routing guidance second, so nothing is buried. The parenthetical heading list is slightly dense but still earns its place.

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?

With no output schema, the description must convey what comes back, and it does: heading hierarchy plus file:line plus missing-file notices. For a two-optional-parameter read tool that is nearly complete, though traversal-failure behavior is left unstated.

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 both parameters are already documented; the baseline is 3. The description implies the main-document default and the rootFile override ('following \input/\include from the main document'), adding only marginal meaning beyond the schema.

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?

The description names a specific verb and resource ('Outline of a LaTeX project'), enumerates the heading levels it captures (parts, chapters, sections), and explains that it follows \input/\include from the main document. That level of detail distinguishes it cleanly from siblings like list_files and get_section.

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?

It states both use cases ('see a paper's structure or find where a section lives') and routes the agent onward: get_section for one section, read_file for raw lines. When-to-use and alternatives are both explicit.

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