Skip to main content
Glama
AskBase

AskBase

Official

list_documents

List documents stored in AskBase, optionally filtered by collection or processing status, so you can review knowledge base contents and monitor item states.

Instructions

List documents, optionally in one collection or with one status (pending, processing, completed, failed).

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
limitNo
statusNopending, processing, completed or failed
collection_idNoCollection ID

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv2.1.0

TDQS

B3.4/5.0
Behavior3/5

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

With no annotations, the description carries the full behavioral burden. It clearly implies a read-only listing operation and enumerates the status values, but it does not disclose pagination behavior, default limit, ordering, or whether the list is scoped to the caller's permissions.

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 definition is a single, front-loaded sentence with no wasted words. It efficiently conveys the resource and both optional filters, though it could be slightly more structured by separating usage guidance from parameter detail.

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?

This is a simple list tool with an output schema, so the description need not explain return values. It is adequate but incomplete for an agent that needs to know pagination behavior, default result size, and how this differs from search-like siblings.

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 description coverage is 67%, and the description adds meaning by explaining that collection and status are optional filters and by enumerating the valid status values. It does not explain the limit parameter or how multiple filters combine, leaving some semantic gaps.

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 states a specific verb and resource ('List documents') and names the two filter dimensions (collection and status), making the core purpose immediately clear. It does not explicitly distinguish itself from siblings like search or get_document, so it falls short of a 5.

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 word 'optionally' signals that both filters are optional, which implies the tool can be used for broad or narrowed listing. However, there is no explicit guidance on when to use this versus search or get_document, and no mention of pagination or result ordering.

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