Skip to main content
Glama

list_documents

Read-only

List the workspace's documents, newest first, with each one's latest version.

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
afterNoThe `next` of the previous page.
limitNoHow many to return, up to 100; 100 when absent.
project_idNoOnly this project's documents, `prj_…`; every project's when absent.

Output Schema

NameRequiredDescriptionDefault
nextNoPass it as `after` to get the next page; absent on the last one.
documentsYesThe documents on this page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.6/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 genuinely new behavioral facts beyond the annotations: results are sorted newest first and each entry carries its latest version, but it says nothing about pagination, caps, or how much data a full enumeration returns.

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?

A single compact sentence with no filler, and the key facts (scope, ordering, included version) are front-loaded where the agent will read them first.

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 an output schema covering return shape and full schema coverage of parameters, the description only needs scope, ordering, and content, all of which it supplies. The minor omission is that pagination ('after'/'next') is never mentioned in prose, but the schema carries it.

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 all three parameters (after, limit, project_id) are already documented in the schema, including the default limit of 100 and the prj_ prefix. The description adds no parameter-level meaning of its own, so the baseline of 3 applies.

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 names a specific verb and resource ('List the workspace's documents') plus the scope (workspace-wide) and the ordering and payload ('newest first, with each one's latest version'). An agent can tell this is a read of all documents rather than a filtered search or a version listing, though it doesn't explicitly contrast with siblings such as list_versions or list_projects.

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: an agent can infer this is the enumeration tool for documents in a workspace, but there is no statement of when to prefer it over alternatives (e.g., list_versions, create_document, or project-scoped listing) and no exclusions or prerequisites.

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