Skip to main content
Glama

Lilia Editor

List documents

list_documents
Read-onlyIdempotent

List the author's documents (their own and those shared with them), most recently changed first: id, title, role (owner/editor/viewer), when it changed, block count, and the last validation (errors, warnings). One page at a time: total says how many there are, and nextOffset (null on the last page) is the offset for the next page.

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": "list_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNo"changed" (default): last changed first. "warnings": most warnings in the last validation first. "errors": most errors first. Never-validated documents count as 0.
limitNoHow many to return, 1 to 50. Default 20.
offsetNoHow many to skip, for the next page: pass the previous answer's nextOffset. Default 0.
searchNoOptional words to find in titles.

Schema Changelog

Changes observed during successful MCP inspections.

No schema history has been recorded yet.

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnlyHint, idempotentHint, openWorldHint=false), so the description's added value is the return shape — id, title, role, changed time, block count, last validation errors/warnings — and the paging contract. It does not discuss rate limits, permissions, or edge cases like an empty document list, which keeps it short of a 5.

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?

Two sentences, both front-loaded: scope and ordering first, then the pagination contract. Nothing is repeated and every clause carries information an agent needs to call the tool.

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 describing return values and does so field by field, plus explains total and nextOffset for paging. For a zero-required-parameter read tool this is complete enough to call correctly on the first attempt.

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 each parameter carries its own description, including the sort enum values and the offset/nextOffset pattern. The description reinforces the default ordering and the nextOffset handoff but adds no syntax or constraint beyond the schema, 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 gives a specific verb and resource ("List the author's documents"), scopes it to owned plus shared documents, and states the default ordering plus the fields returned. It never names a sibling such as search_document, so an agent must infer the boundary between listing and searching on its own.

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

Usage Guidelines3/5

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

Usage context is implied by the scope ("their own and those shared with them") and the pagination note explains how to page, which is practical operating guidance. However, there is no explicit statement of when to choose this over search_document or get_document, and no when-not guidance.

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