Skip to main content
Glama

List knowledge documents

list_knowledge_documents
Read-onlyIdempotent

List a knowledge base's documents with each one's state (processing, ready or failed), a page of at most limit (default 50, at most 100) from offset. A document is searchable once it is ready.

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_id": "<project_id>",
      "knowledge_base_id": "<knowledge_base_id>"
    },
    "name": "list_knowledge_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
offsetNo
project_idYesThe workspace project the knowledge base belongs to.
organization_idNoOptional. Defaults to the authenticated workspace; when supplied it must be that workspace's id.
knowledge_base_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent and non-destructive, so the description is free to add real context beyond them — the three possible document states and the readiness rule that governs searchability. It omits ordering, permission requirements, and whether a total count is returned, but the state model is genuinely useful information the annotations cannot convey.

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?

Two sentences, front-loaded with purpose and zero filler. The pagination clause is slightly compressed ("a page of at most limit (default 50, at most 100) from offset") but no sentence is wasted.

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 read-only list tool with no output schema, the description covers what is returned (documents plus their state) and how to page through them. Ordering guarantees and per-document fields remain unstated, which is the main residual gap.

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 only 40%, and the description covers the pagination pair, restating the limit default (50) and cap (100) while clarifying that results form "a page ... from offset". It does not explain knowledge_base_id or organization_id semantics beyond what the parameter names imply, so it only partially compensates for the coverage gap.

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?

The description gives a specific verb and resource ("List a knowledge base's documents") and adds what each item carries (its processing state). That distinguishes it from get_knowledge_document_text or get_knowledge_base, though it never names those siblings explicitly.

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?

Usage is implied rather than stated: the reader infers this is the browse/poll tool and that "a document is searchable once it is ready" signals when results become actionable. There is no explicit when-not-to-use or pointer to a sibling for fetching document content or metadata.

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.