Skip to main content
Glama

List documents

list_documents
Read-onlyIdempotent

Retrieve documents from the active workspace, newest first, filtering by status, type, or collection to get metadata before reading full content.

Instructions

List documents in the active workspace, newest first. Filterable by status, type, and collection. Returns metadata only. Call get_document to read the body.

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
typeNo
limitNoDefault 50.
offsetNoSkip this many docs. Default 0.
statusNoDefault 'active' (excludes archived). 'all' includes archived.
favoriteNoOnly return favorited docs.
collectionNoExact collection name match.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already cover read-only, idempotent, and closed-world behavior, so the description's added value is the "Returns metadata only" note and the newest-first ordering, both useful for planning. Because there is no output schema, it could have said more about the shape of the returned metadata, but the key behavioral fact is disclosed.

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, no filler, with the core scope statement and ordering front-loaded ahead of the filter summary and the routing hint. Every sentence carries distinct information.

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?

For a six-parameter read-only list tool with no output schema, the definition covers scope, ordering, filtering, and the metadata-only return, and points to the tool that retrieves bodies. The one remaining gap is that it doesn't acknowledge the text-search sibling as an alternative path to finding documents.

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?

The description echoes the status, type, and collection filters that the schema already documents at 83% coverage, and never mentions favorite, limit, or offset. With schema coverage this high, the description's restatement adds little meaning beyond the structured fields, so the 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?

"List documents in the active workspace, newest first" gives a concrete verb, resource, scope, and sort order. It also distinguishes itself from get_document by declaring that it returns metadata only and that body content requires a different tool.

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?

It explicitly routes body-reading to get_document, which is the key ambiguity an agent would face. It does not state when to prefer it over text-based retrieval (search_documents is not addressed), so it stops short of full when/when-not guidance.

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