Skip to main content
Glama

List documents

list_documents
Read-only

List documents (name, mime type, visibility, status). Optionally filter by folder.

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
statusNoactive|archived|deleted
folder_idNo
target_tenant_idNoPlatform super-admins only: operate on this tenant instead of your own.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.4/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false, and openWorldHint=false, so the safety profile is covered. The description adds the projection (which fields come back), but says nothing about ordering, default limits, or that target_tenant_id is restricted to platform super-admins — the schema carries that last point alone.

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?

Two short sentences with the capability front-loaded and zero filler. It is arguably under-specified rather than padded, but nothing in the text is wasted.

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?

For a four-parameter read tool with annotations and no output schema, the definition covers the core purpose and the folder filter but omits pagination behavior, result ordering, and the privilege context of tenant switching. It is callable as written, but an agent would have to guess at result-size management.

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 50%: status and target_tenant_id are documented in the schema, while folder_id and limit are not. The description compensates for folder_id ("filter by folder") but leaves limit entirely unexplained, so it only partially fills the 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?

The description states a specific verb and resource ("List documents") and enumerates the fields returned (name, mime type, visibility, status), which is more than a restatement of the title. It does not differentiate itself from the sibling list_document_folders, leaving the folder-vs-document boundary to the reader.

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?

"Optionally filter by folder" is the only usage signal, and it implicitly points at folder-based selection. There is no guidance on when to choose this over list_document_folders, no note about pagination or default result volume, and no mention of when the status filter should be applied.

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