Skip to main content
Glama

Linkly AI

outline

Read-only

[Workflow: search → grep or outline → read] Get metadata and structural outline of one or more documents by their IDs (obtained from search results) in batch.

Recommended for documents >50 lines with has_outline=true — saves multiple read calls by identifying target sections first.

Keep each batch within one backend: do not mix local:// and cloud:// IDs in one outline call. Split local and cloud documents into separate outline calls.

Note: has_outline in each search result tells you which documents have a parsed outline; for the rest, use 'grep' to find specific patterns or 'read' for line-by-line browsing.

Size fields (Desktop-local documents): word_count counts words (one per CJK character or Latin word; whitespace/punctuation/markup excluded) and reads well below a Chinese user's 字数; char_count counts Unicode characters of the extracted body (whitespace/punctuation/markup included, CR excluded) — the figure to match what the user sees. null/omitted char_count = not yet computed (or an older Desktop), not an empty body; read on a local document returns it whenever the Desktop supports it. cloud:// items do not carry char_count.

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": {
      "doc_ids": "<doc_ids>"
    },
    "name": "outline"
  }
}

Input Schema

NameRequiredDescriptionDefault
expandNoNode IDs to expand (e.g. ["2", "3.1"]). When provided, only specified nodes are fully expanded; others are collapsed. When omitted, shows as many levels as fit within the budget.
doc_idsYesList of document IDs (obtained from search results). Each ID is an opaque string — pass through verbatim from `search`. Local documents take the form `local://<integer>`; bare integer IDs from older clients remain accepted. Cloud documents use the form `cloud://<owner>/<slug>/<root-hash>/<path>`. Do not mix local:// and cloud:// IDs in one call; split them into separate outline calls.
output_formatNoOutput format. Defaults to "markdown" (human-readable); set to "json" for structured JSON (machine-parseable). Sending `null` or omitting the field both yield the default.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior5/5

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

Beyond readOnlyHint=true and openWorldHint=false, the description discloses a real operational constraint (local:// and cloud:// IDs cannot be mixed in one call), the cost rationale (saves multiple read calls), and the semantics of null/omitted char_count ('not yet computed ... not an empty body'), which prevents a plausible misinterpretation. It also notes cloud:// items never carry char_count.

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-loaded with the workflow and the recommendation, then the constraints, so the actionable content comes first. The size-fields paragraph is dense and somewhat tangential to calling the tool, but it earns its place by pre-empting a common misreading of word_count versus char_count.

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 carries the return-value burden and does so reasonably: metadata plus a structural outline, expand/collapse behavior, and the size fields. The remaining gap is the undefined 'budget' that governs how many levels are shown when expand is omitted.

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 expand, doc_ids, and output_format are already fully documented in the schema. The description only reinforces the ID provenance ('obtained from search results') and the local/cloud split, adding little beyond the structured field text; the 'budget' referenced for omitted expand is left undefined.

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 ('Get metadata and structural outline of one or more documents by their IDs') plus the batch scope, and the workflow header places it precisely between search and read, so an agent can separate it from grep and read 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 an explicit routing rule ('search → grep or outline → read'), a positive trigger ('documents >50 lines with has_outline=true'), and the negative case with named alternatives ('for the rest, use grep ... or read'). When-to-use, when-not-to-use, and alternatives are all present.

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