Skip to main content
Glama

List documents

list_documents
Read-onlyIdempotent

Browse indexed documents by name, type, folder, or modification date to see what exists and locate files; search by content instead when you need full-text lookup.

Instructions

List indexed documents with their metadata, without content, most recently modified first. Use it to see what exists, to find a file by name, or to list the files of one type, folder or period (e.g. all PDFs modified in October). To find documents by what they contain, use search_documents instead. Read-only. Covers only the folders indexed by RootMind that this connection may access, as of the last indexing run (files changed since may be missing). All parameters are optional: search_filename matches part of the file name (case-insensitive), file_type, folder and modified_after/modified_before filter, limit caps the list. Returns per document: name, ID, folder, type, file size, text length and modification date. There is no paging: when the list is cut at limit, narrow the filters or raise limit.

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
limitNoMaximum number of documents (1-200, default 50).
folderNoOptional: only documents in this indexed folder, by its name, case-insensitive (e.g. 'Unterlagen'; get_statistics lists the folders).
file_typeNoOptional: only this file type, as the lowercase extension without a dot (pdf, docx, xlsx, pptx, md, txt, csv, ...).
modified_afterNoOptional: only documents modified on or after this date (YYYY-MM-DD).
modified_beforeNoOptional: only documents modified on or before this date (YYYY-MM-DD).
search_filenameNoOptional: part of the file name, case-insensitive (e.g. 'invoice' finds 'Invoice-2026.pdf').

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv2.10.1
    • changedInput schema / properties / file_type / description
      Previous value: -"Optional: filter by file type, e.g. pdf, docx, xlsx, pptx, md, txt, csv"New value: +"Optional: only this file type, as the lowercase extension without a dot (pdf, docx, xlsx, pptx, md, txt, csv, ...)."
    • changedInput schema / properties / folder / description
      Previous value: -"Optional: only documents in this indexed folder, by its name (e.g. 'Unterlagen'; get_statistics lists the folders)."New value: +"Optional: only documents in this indexed folder, by its name, case-insensitive (e.g. 'Unterlagen'; get_statistics lists the folders)."
    • changedInput schema / properties / search_filename / description
      Previous value: -"Optional: substring to look for in file names."New value: +"Optional: part of the file name, case-insensitive (e.g. 'invoice' finds 'Invoice-2026.pdf')."
  2. Changed3 schema fields changedv2.10.0
    • addedInput schema / properties / folder
      Added value: +{
      +  "description": "Optional: only documents in this indexed folder, by its name (e.g. 'Unterlagen'; get_statistics lists the folders).",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_after
      Added value: +{
      +  "description": "Optional: only documents modified on or after this date (YYYY-MM-DD).",
      +  "type": "string"
      +}
    • addedInput schema / properties / modified_before
      Added value: +{
      +  "description": "Optional: only documents modified on or before this date (YYYY-MM-DD).",
      +  "type": "string"
      +}
  3. First observedv2.6.1

TDQS

A4.4/5.0
Behavior4/5

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

The annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the description does not need to restate safety. It instead adds genuinely new behavioral context: coverage is limited to folders indexed by RootMind that the connection may access, results are as of the last indexing run so recently changed files may be absent, content is excluded, and there is no paging. This is strong disclosure, though it stops short of describing error behavior or permission failures.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Information is front-loaded: purpose first, then the routing to the alternative, then scope caveats, then parameters and return shape. The parameter enumeration largely restates the input schema and is the one segment that does not fully earn its place, but there is no filler elsewhere.

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?

For a six-parameter, all-optional read tool with no output schema, the description covers purpose, alternatives, staleness and scope limits, the returned fields, and the absence of paging. An agent has everything needed to invoke it correctly and interpret the results.

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 the schema already documents every parameter including ranges, formats and examples; the baseline of 3 applies. The description adds only a little beyond that, notably that all parameters are optional, that `limit` caps the list, and that truncation should be resolved by narrowing filters or raising `limit` rather than paging.

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?

The description opens with a specific verb and resource ('List indexed documents with their metadata, without content'), states the ordering (most recently modified first), and explicitly separates itself from search_documents by content-search intent. An agent can distinguish it from siblings like search_documents and get_document_info without opening any schema.

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

Usage Guidelines5/5

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

It gives three concrete use cases (see what exists, find by name, list one type/folder/period, with a worked example 'all PDFs modified in October') and names the alternative tool with the condition that selects it ('To find documents by what they contain, use search_documents instead'). It also tells the agent what to do when the result is truncated at `limit`.

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