Skip to main content
Glama

list_documents

List the files and notes stored in long-term memory, newest first, with an optional kind filter and a limit from 1 to 1000. Use it to see what material exists before searching or reading.

Instructions

The material the user's memory was given, newest first; kind is file or note. limit is how many, newest first: 1-1000, default 100.

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
kindNo
limitNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations at all, the description carries the full behavioral burden. It usefully discloses ordering ('newest first') and the limit bounds (1-1000, default 100), which a caller could not otherwise infer, but it is silent on pagination/continuation past 1000, whether reads are unrestricted or scoped, and what happens when `kind` and `limit` are omitted.

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

Conciseness3/5

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

Two short clauses with the scope statement front-loaded, but 'newest first' is repeated verbatim in both clauses, so one of the four segments is pure redundancy. It is not bloated, just loosely edited.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

An output schema exists, so return shape need not be explained, and for a zero-required-parameter listing tool the coverage of ordering and limits is close to sufficient. What remains missing is how enumeration terminates beyond the 1000 cap and how this differs from the many sibling list/search tools an agent must choose among.

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 description coverage is 0%, so the description must compensate, and it largely does: it maps `kind` to the value domain (file/note) and gives `limit` a concrete range and default. The gaps are that it never states what `kind=null` means (all kinds?) and the stated default of 100 conflicts with the schema's null default, leaving the caller to guess.

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?

The description identifies the resource concretely: documents are 'the material the user's memory was given', and it narrows that to '`kind` is `file` or `note`', which is real disambiguation beyond the bare name. It does not use an explicit verb ('list/retrieve') and never contrasts itself with siblings like list_media, search_memories, or get_document, so it stops short of a 5.

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

Usage Guidelines2/5

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

There is no when-to-use or when-not-to-use guidance: nothing says whether to pick this over search_memories for keyword lookup, get_document for a single item, or list_media for non-note assets. The only usage-like information is the default limit, which is a calling detail rather than a selection rule.

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