Skip to main content
Glama

list_documents

List indexed documents in a project's knowledge base with source paths, chunk counts, and last synced timestamps to verify indexing status.

Instructions

List all indexed files for a project with metadata.

Shows source paths, chunk counts, and last synced timestamps for all documents in a project's knowledge base.

Input: project (str, optional — defaults to current project)

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
projectNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.3.0

TDQS

A3.6/5.0
Behavior3/5

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

With no annotations, the description carries the burden, and it does disclose that this is a read listing and what each entry contains (source paths, chunk counts, last synced timestamps). It says nothing about pagination, result limits on large projects, or whether synced timestamps can be stale, which matters for an unannotated tool with no output schema.

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?

Front-loaded with the action, then the returned fields, then the input note — a sensible order for a listing tool. The first two sentences overlap somewhat ('indexed files for a project with metadata' vs 'all documents in a project's knowledge base'), costing a little tightness.

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 one-optional-parameter read tool with no output schema, the description covers purpose, scope, returned fields, and the parameter default. The remaining gap — ordering and behavior on very large projects — is modest given the tool's simplicity.

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 coverage is 0% for the single 'project' parameter, and the description compensates by stating its type, its optionality, and crucially that omitting it defaults to the current project. That resolves the ambiguous empty-string default in the schema, leaving only the format of a project identifier unexplained.

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 all indexed files for a project' — and immediately scopes it to a project's knowledge base rather than the whole corpus. The 'all' framing implicitly separates it from search_docs, but no sibling is named, so an agent must infer the distinction.

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?

Usage is only implied: the repeated 'all documents' phrasing suggests this is the full-inventory path as opposed to a query-based search, but there is no explicit when-to-use or when-to-prefer-search_docs guidance. No prerequisites or exclusions are stated.

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