Skip to main content
Glama

Outline a document

document_outline
Read-onlyIdempotent

Describe a local document’s format, title, size, and titled, numbered pages, slides, or sheets with lengths—without returning text. Use the result to choose which sections to convert.

Instructions

Describe a local document without returning its text: format, title, size, and its pages, slides or sheets with their numbers, titles and lengths. Use it to decide which sections to ask convert_document for.

path: the file to read (absolute, or relative to where the server was started).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "path": "<path>"
    },
    "name": "document_outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
pathYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.2

TDQS

A4.6/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and a closed-world scope, so the safety profile is covered. The description adds a genuinely non-obvious behavioral trait — that document text is deliberately not returned — plus a breakdown of the metadata returned. It stops short of describing error behavior for unsupported or missing files, which is the only real gap.

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?

Front-loaded with the return-value contract and the routing guidance first, then a single short paragraph for the parameter. Every sentence carries information; nothing is padded or repeated.

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?

For a one-parameter, read-only tool with no output schema, the description supplies the shape of what comes back and how it feeds convert_document, which is enough to call it correctly. Slight gap: no mention of what happens with unsupported formats or unreadable paths, though annotations already make the operation safe to attempt.

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

Parameters4/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 carry the single `path` parameter alone, and it does: the file to read, absolute or relative to where the server was started. That resolves the one ambiguity an agent would actually hit (relative path base). No further syntax detail is needed for a single string path.

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 ("Describe a local document") plus an explicit negative scope ("without returning its text") and enumerates exactly what comes back: format, title, size, and per-page/slide/sheet numbers, titles and lengths. This is clearly distinguishable from convert_document, which returns content rather than an outline.

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?

Names the alternative tool explicitly and the condition that selects it: use this first to decide which `sections` to ask convert_document for. That is a concrete two-step workflow rather than implied usage, leaving little inference to the agent.

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

Deploy Server

Other Tools