Skip to main content
Glama

list_docs

Read-onlyIdempotent

List documented pages, optionally inside one space.

    Use when the caller wants an inventory ("what manuals exist for ranger")
    rather than an answer.

    Args:
        space: optional space slug or name fragment.
        limit: 1-300, default 100.
        offset: pagination offset, must be >= 0.

    Returns JSON: {space, count, offset, docs:[{doc_id,title,space,url,chars}]}.
    ``count`` is the number of docs in this page; compare it with ``limit`` to
    decide whether to request the next page. There is no total field — use
    ``list_spaces`` for per-space counts.
    

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
limitNo
spaceNo
offsetNo

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • addedInput schema / properties / limit / maximum
      Added value: +300
    • addedInput schema / properties / limit / minimum
      Added value: +1
    • addedInput schema / properties / offset / minimum
      Added value: +0
  2. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Annotations already declare this as a safe read-only, idempotent operation. The description adds important pagination behavior beyond the annotations: count is the number of docs in this page, compare it with limit to decide on the next page, and there is no total field.

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?

The description is well structured and front-loads purpose, usage, Args, and Returns. It is slightly over-complete because the output schema already exists, but the pagination caveat and count-with-limit guidance earn their place.

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 a simple read-only inventory tool, the description covers scope, usage context, every parameter, pagination behavior, and how to interpret the returned count. With annotations and an output schema present, nothing an agent needs in order to call it correctly is missing.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 0%, so the description carries the full burden for parameter meaning. It explains that space is an optional slug or name fragment, limit is 1-300 with default 100, and offset is pagination with a minimum of 0.

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 description starts with a specific verb and resource: 'List documented pages, optionally inside one space.' It distinguishes inventory use from answer-seeking and notes that list_spaces is for per-space counts, so the agent can identify the intended operation without opening the schema.

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?

It gives clear when-to-use guidance: use this when the caller wants an inventory rather than an answer, and use list_spaces for counts. It does not explicitly name search_docs, find_in_doc, or get_doc as alternatives for answer-seeking, so the routing guidance is strong but not fully explicit.

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.