Skip to main content
Glama

List docs

list_docs
Read-onlyIdempotent

List docs you can see, latest edit first, 50 per page. Filter by spaceId, state (active by default), parentId (a doc ID, or root for top-level docs), q (title, slug, or identifier), lastEditedBy (a user ID or me), or locked. Set sort to title or createdAt, with order, to sort the newest 500 visible docs. Use get_doc for content, search for keywords.

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_docs"
  }
}

Input Schema

NameRequiredDescriptionDefault
qNoMatches the title, slug, or identifier.
sortNoSorting reads the newest 500 visible docs.
limitNoPage size. Default 50.
orderNoDefault desc, or asc for title.
stateNoDefault active.
cursorNoPrevious nextCursor.
lockedNoOnly locked or unlocked docs.
spaceIdNoOnly this space.
parentIdNoA doc ID for its children, or root for top-level docs.
lastEditedByNoUser ID or me.
response_formatNoHow much to return. concise applies when omitted; detailed adds every field and the full text.

Output Schema

NameRequiredDescriptionDefault
pagesYesThis page of results.
hasMoreNotrue when another page exists.
nextCursorNoPass as cursor for the next page. Null or absent on the last page.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, closed-world), and the description adds genuinely useful behavior the annotations cannot: state defaults to active, sorting only reads the newest 500 visible docs, and results are paginated at 50 per page. It stops short of describing how cursor paging interacts with the 500-doc sort window, which is the one operational detail an agent could still 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.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three dense sentences, no waste, front-loaded with what the tool returns and its defaults before enumerating filters. Information ordering matches how an agent would build a call: purpose, then filters, then escaping to siblings.

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?

For an 11-parameter, zero-required list tool with full schema coverage, complete annotations, and an output schema, nothing essential is missing. The description covers scope, defaults, pagination, the sort-window limit, and alternatives, leaving return-value shape to the output schema.

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 baseline is 3, and the description earns above that by restating defaults and semantics in prose: state active by default, parentId accepting 'root' for top-level docs, lastEditedBy accepting 'me', and the 500-doc ceiling on sort. It adds interpretive context rather than merely echoing field names.

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 docs") plus the visibility scope ("docs you can see"), default ordering ("latest edit first"), and page size ("50 per page"). It also names the two siblings it is not — get_doc for content and search for keywords — so an agent can route without opening a schema.

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?

Explicit routing guidance: use get_doc when the goal is content, search when the goal is keywords, otherwise enumerate here. The filter list (spaceId, state, parentId, q, lastEditedBy, locked) doubles as a usage map for narrowing results, and the default of state=active is called out.

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