Skip to main content
Glama

Lilia Editor

Read the whole document

get_document
Read-onlyIdempotent

The whole document in one call, in order: each block's id, type and content (the JSON edit_block takes). For the document's LaTeX, use get_latex. Read a paper with this before revising it, rather than one get_block per block. A long document comes in pages: offset and limit count blocks (default 0 and 150, at most 400); nextOffset is where the next page starts (null on the last).

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": {
      "documentId": "<documentId>"
    },
    "name": "get_document"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNoHow many blocks, 1 to 400. Default 150.
offsetNoThe first block to return, counting from 0. Default 0.
documentIdYesThe document id.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A4.7/5.0
Behavior5/5

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

Annotations only declare read-only, idempotent, closed-world; the description adds genuinely new behavior: pagination over blocks with offset/limit defaults (0 and 150), a hard ceiling of 400, and a nextOffset value that is null on the final page. Since there is no output schema, that return-shape disclosure is exactly what the description needs to carry.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The response-shape, sibling routing, and pagination statements are all load-bearing and front-loaded, but the final sentence duplicates the schema's defaults and limits ('default 0 and 150, at most 400') verbatim. Slight repetition of the 400 ceiling could be trimmed without loss.

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?

For a paginated read with no output schema, the description covers return contents, ordering, pagination mechanics, and the terminal-page sentinel. An agent has everything needed to page correctly and to choose this over get_block or get_latex.

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 coverage is 100%, so the baseline is 3, but the description adds meaning the schema does not: offset and limit 'count blocks' (units of measure), and nextOffset is described as a response-side value even though it is not an input parameter. The only mild redundancy is restating the 0/150/400 defaults already in 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?

Opens with a specific verb and resource ('The whole document in one call, in order') and immediately enumerates the returned payload (each block's id, type and content). It explicitly distinguishes itself from two siblings, get_latex and get_block, so an agent can pick the right tool without inspecting 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 explicit when-to-use guidance ('Read a paper with this before revising it') and an explicit when-not alternative ('rather than one get_block per block'), plus a routing rule to get_latex for LaTeX source. No inference about alternatives is required.

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