Skip to main content
Glama

List documents

list_documents
Read-only

List the documents of a property or of a rental (give one of them), newest first. Paged: if the result has a non-null nextCursor, call again with it as cursor for more.

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
limitNoPage size, 1-200 (default 100)
cursorNo`nextCursor` from the previous page, to get the next one
rentalIdNoOr the rental it belongs to (contracts, inventories, receipts…)
propertyIdNoThe property the document belongs to (property documents: deeds, insurance, certificates…)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and openWorldHint=false, so safety is covered. The description adds two behavioral facts beyond that: results are ordered newest first, and a non-null nextCursor means more pages exist and must be fetched with cursor. That is genuine added context, though nothing is said about permissions, result size, or what a document record contains.

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, zero filler, with the scoping rule front-loaded and the pagination loop placed after it. Every clause carries information an agent needs before calling.

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 does enough: it discloses the ordering, the nextCursor contract, and that only one of the two id parameters is expected. It omits what fields a document object exposes, which is a minor gap for a simple list tool covered by read-only annotations.

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. The description earns a point above baseline by stating the mutual-exclusivity constraint between propertyId and rentalId ("give one of them"), which the schema documents individually but never as an either/or choice.

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 (list documents), the two scoping options (property or rental), and the sort order (newest first). An agent can tell this apart from sibling listers such as list_properties or list_rentals because the returned resource is named explicitly.

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

Usage Guidelines4/5

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

Establishes the calling context clearly - the caller must supply either a property or a rental - which implicitly rules out calling it with neither. It also gives a concrete follow-up rule for paging. It stops short of naming an alternative tool for retrieving a single document or for other document scopes, so a 4 rather than a 5.

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.