Skip to main content
Glama

list_documents

Read-onlyIdempotent

Browse knowledge base documents with their section headings, or discover valid doc_ids for retrieval. Optionally filter results by path prefix such as 'policies/'.

Instructions

List the documents available in the knowledge base, with their section headings. Use this to browse or to discover valid doc_ids.

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

Input Schema

NameRequiredDescriptionDefault
path_prefixNoOnly list documents whose doc_id starts with this, e.g. 'policies/'

Output Schema

NameRequiredDescriptionDefault
countYes
documentsYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior3/5

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

Annotations already declare readOnlyHint, idempotentHint and openWorldHint=false, so the safety profile is fully covered by structured data. The description's 'section headings' detail largely restates what the output schema conveys; its only genuinely additive point is that results can be used to discover valid doc_ids.

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 no filler; the listing behavior is front-loaded and the usage note follows. Nothing is redundant or padded.

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 single optional-parameter read tool with an output schema and full annotations, the description covers purpose and usage adequately. The only gap is that it does not relate itself to the sibling retrieval tools an agent must choose between.

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 the path_prefix parameter already has a precise description with an example ('policies/'). The description adds no filtering, matching or format semantics beyond the schema, so the baseline of 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?

States a specific verb and resource ('List the documents available in the knowledge base') and adds what comes back ('with their section headings'). It does not name get_document or search_docs, so differentiation from siblings is implied by 'browse' rather than made explicit.

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?

Gives clear usage contexts: 'Use this to browse or to discover valid doc_ids.' That establishes when to reach for it and even points at a downstream purpose (feeding a doc_id into another tool), though it never states when not to use it or names the search alternative.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Deploy Server

Other Tools