Skip to main content
Glama

Get outline

get_outline

Retrieve a note's heading tree with heading levels and line numbers to inspect structure, navigate sections, or plan edits without opening the file.

Instructions

Heading tree of a note, with heading levels and line numbers.

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
fileNoNote name, resolved like a wikilink. No folder path, no extension.
pathNoExact path from the vault root, e.g. "Projects/Roadmap.md".

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. It does disclose the return shape (heading levels and line numbers), which is the most valuable behavioral fact here since there is no output schema, but it says nothing about read-only safety, behavior when the note has no headings, or what happens if neither file nor path resolves.

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?

A single compact sentence that front-loads the returned artifact. It is a noun phrase rather than a full clause, but nothing is wasted and no filler is present.

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

Completeness3/5

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

For a simple two-optional-parameter read tool with no annotations and no output schema, the description covers what comes back but leaves the file-vs-path selection and the zero-argument default unexplained. It is adequate but thin given that no structured fields compensate.

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 coverage is 100%, so both parameters are already documented with resolution rules (wikilink-style name vs. exact vault-root path). The description adds nothing about the file/path choice or the fact that both are optional, so the baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific resource (a note) and specific returned content (a heading tree with levels and line numbers), which is far more informative than the bare title 'Get outline'. It does not, however, contrast itself with siblings like read_note or get_note_info, so the agent must infer that this is the structural-summary variant.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

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

There is no when-to-use guidance at all: nothing says to pick this over read_note when you only need document structure, and nothing states prerequisites. The only usage signal is implicit in the word 'heading tree'.

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