Skip to main content
Glama

List knowledge documents

list_knowledge_documents
Read-onlyIdempotent

A knowledge base's documents: each file, where it stands (queued, indexed, failed) and why one failed.

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": {
      "knowledge_base": "<knowledge_base>"
    },
    "name": "list_knowledge_documents"
  }
}

Input Schema

NameRequiredDescriptionDefault
limitNo
statusNoOnly those: queued, indexed, failed…
knowledge_baseYesThe knowledge base's name (or its id).

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

B3.1/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint, destructiveHint=false and openWorldHint=false, so the safety profile is fully covered. The description adds genuinely new output context — that document status can be queued, indexed, or failed, and that failure reasons are surfaced — which helps an agent decide whether to follow up with retry_knowledge_document. It says nothing about ordering, pagination, or what an empty result means.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

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

It is a single short sentence, which is efficient, but it is a sentence fragment with no verb and the trailing clause "why one failed" is ambiguous (why that particular one failed? why failures happen generally?). The information is front-loaded but the phrasing costs some clarity.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a three-parameter read-only list tool with annotations covering safety and no output schema, the description is adequate but thin: it omits pagination/default limit behavior and any sense of result shape or ordering. The annotations carry the safety burden, so the remaining gaps are modest but real.

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 67% and the schema already documents knowledge_base (name or id) and the status filter values. The description's parenthetical status list echoes the schema rather than adding syntax, and it says nothing about limit semantics or default ordering. With the schema doing most of the work, the baseline 3 applies.

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 fragment names the resource precisely ("A knowledge base's documents") and enumerates what each item contains (file, status queued/indexed/failed, failure reason), which distinguishes it from list_knowledge_bases. It works as a purpose statement but is written as a noun phrase rather than a verb+resource sentence, so the listing action is only implied by the tool name.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

There is no when-to-use guidance, no prerequisites (e.g., that it requires an existing knowledge base), and no mention of alternatives such as search_knowledge or list_knowledge_bases. The agent must infer from the description alone that this is the enumeration path when browsing a KB's contents.

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.