Skip to main content
Glama

List documents

list_documents
Read-only

List documents. Scope with project_id and/or entity_type+entity_id; omit both for tenant-wide documents. Optional category, status ('pending_upload'|'current'|'superseded'|'archived', default excludes pending_upload/archived unless status is given explicitly).

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
limitNo
statusNo
categoryNo
entity_idNo
project_idNo
entity_typeNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, openWorldHint=false, destructiveHint=false, so safety is covered structurally. The description adds genuinely useful non-schema behavior: pending_upload and archived are excluded by default unless status is passed explicitly. It says nothing about pagination, ordering, or result size relative to `limit`, which matters for a list operation.

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 dense sentences with the scoping rule front-loaded and the default-filter caveat second; no filler or restatement of the title beyond the opening clause.

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?

No output schema exists, so the agent gets no description of the returned document shape, and `limit` semantics are absent. Given six optional parameters and a filtered-list shape, the description covers the parts an agent most needs to build a correct call, but not the result contract.

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 0%, so the description must carry the load; it does explain project_id/entity_type/entity_id combination logic and enumerates the status values with their default exclusion rule. However, `limit` and `category` are never explained — limit in particular is undocumented in both schema and description, leaving a real gap.

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 documents') plus the scoping model, so the agent knows exactly what it retrieves. It does not need sibling differentiation because the sibling set is a catalog of distinct resources, but it also adds no explicit contrast statement.

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

Usage Guidelines4/5

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

Explicitly tells the agent how to scope results ('project_id and/or entity_type+entity_id') and what omitting both means ('tenant-wide documents'). It also states the default filtering behavior for status, though it names no alternative tool and gives no guidance on when a different listing tool would be preferred.

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.

Resources