Skip to main content
Glama

List AnythingLLM Documents

list_documents
Read-onlyIdempotent

List locally stored documents in an AnythingLLM instance, optionally scoping to one folder with offset and limit pagination. Use it to browse or page through available document sources.

Instructions

List locally-stored documents in the AnythingLLM instance (GET /api/v1/documents). Pass optional folder (+ offset/limit) to fetch a single folder with server-side pagination.

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
limitNoPagination page size or 'all' (used when folder is provided).
folderNoOptional folder name to query via ?folder=<name>.
offsetNoPagination offset (used when folder is provided).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnly, idempotent, non-destructive and openWorld, so the safety profile is covered. The description adds that documents are 'locally-stored' and that pagination is server-side, but the pagination gating is already stated in the schema descriptions, and defaults (page size when no folder is given, overall result shape) are not 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?

Two short sentences with zero filler; the core action and endpoint come first and the optional-parameter behavior follows. Nothing needs trimming.

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 simple read-only listing tool with full schema coverage and annotations, the definition covers what an agent needs to call it correctly. A brief note on what is returned when no folder is supplied (there is no output schema) would close the remaining gap.

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%, so all three parameters are documented in the schema itself, including 'all' for limit and the folder-conditioned pagination. The description only restates that combination, adding no format or edge-case detail 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?

States a specific verb and resource ('List locally-stored documents') plus the backing endpoint (GET /api/v1/documents), which clearly separates it from workspace-oriented siblings. It does not explicitly name an alternative, but the resource noun alone is unambiguous.

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?

The second sentence implies usage: pass a folder to scope to one folder, and offset/limit for server-side pagination. There is no explicit when-to-use/when-not-to-use guidance or routing against siblings such as list_workspaces or vector_search_workspace.

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