Skip to main content
Glama
Linkly AI

Linkly AI

Official

outline

Read-only

Retrieves document metadata and a structural section map for one or more document IDs in batch, helping identify target sections before reading and reducing repeated read calls.

Instructions

[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. 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. When connected via the gateway, cloud documents use the form `cloud://<owner>/<slug>/<root-hash>/<path>` — Desktop handles only local IDs; the gateway routes cloud IDs to the cloud backend.
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 observedv1.1.0

TDQS

A4.6/5.0
Behavior5/5

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

Beyond readOnlyHint=true, it discloses that output is budget-limited (expanded nodes vs. collapsed when 'expand' is omitted), that local and cloud IDs are routed to different backends ('Desktop handles only local IDs'), and that a null/omitted char_count means 'not yet computed', not an empty body. These are non-obvious behaviors an agent could easily misread as errors or empty documents.

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 workflow tag and a single dense recommendation sentence make the decision fast. The size-fields paragraph is long and mostly about interpreting returned counts rather than selecting or invoking the tool, so it dilutes focus slightly, though each statement is substantive.

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?

With no output schema, the description takes on the burden of explaining returned fields (word_count vs char_count, why char_count reads below a Chinese user's 字数) and does so. Combined with the has_outline gating, batch semantics, and local/cloud routing, an agent has everything needed to call it correctly and interpret the result.

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% and the schema already documents expand, doc_ids, and output_format thoroughly, so the description cannot add much. It reinforces the provenance of doc_ids (from search results) but repeats schema wording, and the size-fields paragraph concerns returned data rather than parameters. Baseline 3 is appropriate.

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 batch scope, which cleanly separates it from 'read' (line-by-line) and 'grep' (pattern matching) named in the same sentence. An agent can classify this tool without opening the 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?

Explicit when-to-use: documents >50 lines with has_outline=true, with the rationale (saves multiple read calls). Explicit alternatives and exclusions: for documents without a parsed outline, use 'grep' for patterns or 'read' for line-by-line browsing, and the leading workflow line positions it in the search → grep/outline → read sequence.

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