Skip to main content
Glama

docs_list

Read-onlyIdempotent

List documents in a workspace or project, optionally FILTERED by exact criteria and SORTED. Answers "which documents have property X"; use docs_search for "where is X discussed" and docs_tree for the hierarchy.

FILTER VOCABULARY — do not guess it: server_info.filters lists every built-in target with its valid operators, plus the operators per custom-field type; fields_list gives a project's custom fields. Targets are name, workflow, updatedAt, parentId, … for built-ins and cf.KEY for a custom field (cf.priority; the field UUID works too). Filtering by a custom field requires projectId — the same key can name a different field in another project. Built-in targets work across the workspace.

RESPONSE SHAPE: each item carries fields[] only when the filter mentions at least one cf.* target. Resolving custom fields costs a query per page, so a listing that did not ask about them does not pay for them — ask doc_fields_set/docs_get for a specific document's values, or include a cf.* predicate.

THREE RULES THAT PRODUCE WRONG ANSWERS IF IGNORED: • neq and notIn include documents that have NO value at all. "Status is not Done" returns never-filled documents too — that is set negation, not an oversight. Want "filled in and not Done"? Add a second predicate with isNotEmpty. • Custom-field values are inherited, not materialized. A document with no stored value takes the field's project default, and each returned value says which it was via inherited. Hence: no stored value + a default set → the document HAS a value and isEmpty does NOT match it; no stored value + no default → isEmpty matches; an explicitly stored empty (null) overrides the default and isEmpty DOES match. false, 0 and "" are values, not emptiness. • total is the real match count, items is one page. Page on with cursor, or narrow the filter.

Predicates are ANDed. isEmpty/isNotEmpty take no value key at all; every other operator requires one. For public tokens, only published public documents.

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": "docs_list"
  }
}

Input Schema

NameRequiredDescriptionDefault
sortNoSingle sort key. Defaults to name ascending. List-typed custom fields cannot be sorted on.
limitNoMaximum number of documents to return (default: 50, max: 100)
cursorNoPagination cursor (optional)
filtersNoPredicates, ANDed. Max 16. Omit for a plain listing.
projectIdNoUUID of the project to list documents from (optional)
workspaceIdNoWorkspace UUID (optional, auto-selected if user has only one workspace)
workspaceAliasNoWorkspace alias (optional, auto-selected if user has only one workspace)

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare a safe, idempotent read, yet the description still adds substantial behavior not in them: neq/notIn are set negation that include never-filled documents, custom-field values are inherited from project defaults with an `inherited` flag, `total` is the true match count while `items` is one page, and public tokens see only published documents. These are exactly the semantics an agent would otherwise get wrong.

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?

It is long, but front-loaded with purpose and alternatives, then clearly segmented into FILTER VOCABULARY, RESPONSE SHAPE, and THREE RULES sections. The density is justified by the tool's complexity, though a few clauses restate schema-level details and could be trimmed.

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?

There is no output schema, so the description must carry the return shape—and it does, explaining `items[]`, when `fields[]` is populated, `inherited`, `total`, and cursor paging. Combined with the filter rules and the public-token caveat, nothing material is missing for a 7-parameter nested-object tool.

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 100%, so the schema carries the mechanical definitions, but the description goes further by giving the filter target vocabulary (built-ins plus `cf.KEY`/`cf.UUID`), the requirement that cf filtering needs projectId, that predicates are ANDed and that isEmpty/isNotEmpty take no value key. Some of this overlaps the schema (cf.KEY, the value omission rule), which keeps it just below a 5.

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?

The first sentence states a specific verb and resource (list documents) with its scope (workspace or project) and its two optional capabilities (filter, sort). The very next sentence distinguishes it from the siblings docs_search and docs_tree by naming the exact question each answers.

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?

It routes between siblings explicitly: docs_list for 'which documents have property X', docs_search for 'where is X discussed', docs_tree for hierarchy. It also gives concrete preconditions—look up valid targets in `server_info.filters`, custom fields in `fields_list`, and projectId is mandatory for cf.* filtering—so the agent knows what to do before calling.

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.