Skip to main content
Glama

List project documents

list_docs
Read-onlyIdempotent

List the documents uploaded to a project (policy wordings, product guides, underwriting guidelines or anything else), newest first, with their indexing status. Takes project_reference and optional version_reference (only documents that apply to that version: those for every version plus any pinned to it; without it, every document on the project). Returns { project_reference, version_reference, count, indexed, pending, failed, documents: [{ document_reference, title, filename, status, error, pages, chunk_count, bytes, version_reference, created_at }], next_steps }. status is indexed (searchable with search_docs), pending or indexing (not searchable yet), or failed (with the reason in error, e.g. a scanned PDF with no text). chunk_count is how many searchable passages the document has. Documents are uploaded and deleted in the dashboard, not over MCP. Nothing is changed.

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "project_reference": "<project_reference>"
    },
    "name": "list_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
project_referenceYesUUID of the project whose documents to list (get_projects lists projects).
version_referenceNoOptional. Only the documents that apply to this version of the project.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Goes well beyond the readOnlyHint/idempotentHint annotations: it discloses result ordering, the meaning of each status value (indexed vs. pending/indexing vs. failed), that failed carries a reason such as a scanned PDF with no text, what chunk_count measures, and that documents can only be uploaded or deleted in the dashboard, not over MCP. The closing 'Nothing is changed' reinforces the safety profile rather than contradicting it.

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-loads the core action and scope in the first sentence, then the parameter behavior, then the return shape and status semantics. The inline return-type literal is long, but since there is no output schema it earns its space; only minor tightening is possible.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness5/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 fully documents the return envelope and per-document fields, enumerates all status values with their searchability implications, and states the out-of-band mutation boundary. An agent has everything needed to call this and interpret the result without further inference.

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 already 100%, so the baseline is 3, but the description adds real meaning: version_reference is explained as 'documents that apply to that version: those for every version plus any pinned to it', and its absence is defined as 'every document on the project'. That resolves ambiguity the schema's one-line description leaves open.

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?

States a specific verb and resource ('List the documents uploaded to a project') plus the ordering ('newest first') and the extra payload ('with their indexing status'). The parenthetical examples of document types and the contrast with search_docs make it clearly distinguishable from sibling read tools like get_docs, get_doc and search_docs.

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?

Gives a clear context for use and defines the alternative scoping via version_reference (all project documents vs. version-applicable ones), and clarifies that indexed documents are the ones reachable through search_docs. It stops short of an explicit 'use this instead of X when...' routing statement, so it is strong but not a full when/when-not matrix.

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