Skip to main content
Glama

List documents on this account

list_documents
Read-only

Lists the account's documents, newest first: the title, when it was created, how many tracked links point at it, and its document id. A document with no links appears here and not in list_shares, which lists only documents that have been sent. It returns no document contents. Returns at most 50 per call; the before cursor pages back through older documents.

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
beforeNoCursor for the next page: the `next_before` value printed at the end of a previous list_documents result, of the form <created_at>|<document id>. Its exact value selects the next page; omission selects the most recent documents.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, openWorldHint=true, destructiveHint=false, so safety is covered; the description adds genuinely new behavior: result shape, a hard cap of 50 per call, cursor-based backward paging, and the exclusion of document contents. Missing only auth/permission requirements, which keeps it below 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?

Four short sentences, each carrying distinct information: scope and fields first, then the sibling distinction, then the content exclusion, then the page limit and cursor. Nothing is repeated and the most decision-relevant facts are front-loaded.

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 enumerates the returned fields itself, and it covers pagination, the 50-item cap, and what the tool will not return. For a single-optional-parameter read tool, nothing an agent needs in order to call it correctly is missing.

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 description coverage is 100% and the `before` parameter is already documented in detail, including the '<created_at>|<document id>' format and omission semantics. The description's line about the cursor paging back through older documents largely restates that, so baseline 3 applies.

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 ('Lists the account's documents'), plus the exact returned fields (title, created time, link count, document id) and ordering ('newest first'). It also explicitly distinguishes itself from list_shares, so an agent can separate the two without inspecting schemas.

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?

Gives an explicit selection rule against one sibling: documents with no links appear here and not in list_shares. The note that it 'returns no document contents' implicitly routes content needs to get_document. It stops short of naming other alternatives (e.g. list_attachments), but the guidance present is clear and actionable.

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.