Skip to main content
Glama

List documents

list-documents
Read-onlyIdempotent

List documents in the graph, optionally filtered by folder or source type.

WHEN TO USE:

  • To browse what documents exist before searching

  • To find a specific document by title when you don't have the ID

  • To see all policy documents (folder="policies") or memory notes (folder="memory")

RETURNS: Document ids, titles, folders and tags — metadata, not content.

RELATED TOOLS:

  • search-documents ranks by content using hybrid search (BM25 + KNN) and returns only matches. This tool browses PostgreSQL directly with no ranking and lists every document, including empty ones

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
folderNoFilter by folder (e.g., 'policies', 'memory', 'procedures')
source_typeNoFilter by source type (e.g., 'uploaded_doc', 'connection_doc')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.3/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the description correctly uses its space for other traits: results are metadata not content, the source is PostgreSQL read directly, and filtering/ranking is absent so empty documents appear. It stops short of stating whether results are paginated or capped, which matters for a tool that 'lists every document'.

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?

Purpose is front-loaded in the first sentence and the sections are boldly labeled and scannable, with no filler sentences. The header scaffolding is somewhat heavy for a two-optional-parameter list tool, but each block carries distinct routing or output 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?

With no output schema, the description compensates by describing the return shape (ids, titles, folders, tags — metadata, not content), which is what an agent needs to chain into a follow-up call. For a zero-required-parameter list tool the only real gap is result volume/pagination behavior.

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 coverage is 100%, so the schema already documents both filters and even supplies example values ('policies', 'memory', 'procedures'). The description restates the same folder examples and adds nothing about source_type behavior, case sensitivity, or whether filters combine — baseline 3 is correct.

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?

First line states a specific verb and resource plus the two optional scoping dimensions: 'List documents in the graph, optionally filtered by folder or source type.' The RELATED TOOLS section explicitly contrasts it with search-documents (browse vs. ranked hybrid search), so an agent can pick between them without opening either 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?

The WHEN TO USE block gives three concrete conditions (browse before searching, find by title without an ID, enumerate a folder such as 'policies' or 'memory'), and RELATED TOOLS names the alternative plus the rule that selects it: this tool browses with no ranking and returns every document, including empty ones. Exclusions are explicit rather than inferred.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.