Skip to main content
Glama

List doc versions

list_doc_versions
Read-onlyIdempotent

List a doc's saved versions, newest first. Pass nextCursor back as cursor while hasMore is true.

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": {
      "docId": "<docId>"
    },
    "name": "list_doc_versions"
  }
}

Input Schema

NameRequiredDescriptionDefault
docIdYesDoc ID.
limitNoMaximum versions per page (1-200).
cursorNoPrevious nextCursor.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare the read-only, idempotent, non-destructive profile, so the description's job is lighter. It adds genuinely new behavior: result ordering (newest first) and the pagination protocol, including the response field names nextCursor and hasMore. With no output schema, disclosing those fields is valuable context.

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?

Two short sentences with zero filler; the core purpose is front-loaded and the pagination rule follows immediately. Nothing could be removed without losing information.

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?

For a simple read-only paged list tool with full schema coverage and annotations, the description covers purpose, ordering, and pagination adequately. It omits what a version record contains, but without an output schema that is a minor gap rather than a blocking one.

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% and every parameter is documented in the schema, including the cursor-to-nextCursor relationship. The description reinforces the cursor/nextCursor linkage and ties it to hasMore, which adds marginal meaning but little beyond what is already structured.

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?

States a specific verb and resource ('List a doc's saved versions') plus the ordering ('newest first'), which distinguishes it from the singular sibling get_doc_version. It does not explicitly name that sibling or any alternative, so differentiation is implied rather than stated.

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?

The second sentence gives a pagination loop instruction, which is usage guidance for iteration but not guidance on when to choose this tool over get_doc_version or list_doc_children. No prerequisites or exclusions are stated.

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