Skip to main content
Glama

List collections

list_collections
Read-only

List all collections in the knowledge base.

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

Input Schema

NameRequiredDescriptionDefault
pageNoPage number (default: 1).
sortNoTime order: 'latest_created_at', 'oldest_created_at', 'latest_updated_at', or 'oldest_updated_at'. Omit for the default order.
per_pageNoItems per page (default: 30).
parent_idNoFilter by parent collection ID to list sub-collections.

Output Schema

NameRequiredDescriptionDefault
pageNo
has_moreNo
per_pageNo
collectionsNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

C2.9/5.0
Behavior2/5

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

Annotations already declare readOnlyHint=true, destructiveHint=false and openWorldHint=false, so the safety profile is covered without the description. The description adds essentially nothing beyond the title, and its word 'all' is mildly misleading for a paginated endpoint defaulting to 30 items per page with a 100 maximum.

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?

A single front-loaded sentence with zero padding, which is well structured for a simple list tool. It is, however, terse to the point of omitting the pagination and hierarchy behavior that would make the sentence genuinely useful.

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?

An output schema and full parameter documentation mean return values and argument syntax need not be explained here, lowering the burden considerably. Still missing is any hint that results are paginated and that parent_id scopes the listing to sub-collections — the one behavioral nuance an agent could get wrong.

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 100%, with each of the four parameters (page, per_page, sort, parent_id) documented including defaults, bounds and enum-like sort values. The description adds no parameter meaning beyond that, 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 all collections') plus scope ('in the knowledge base'), which is clear enough to act on. It never distinguishes itself from the sibling get_collection (single-collection retrieval) or explains how it relates to list_articles/list_buckets, so it stops short of full sibling differentiation.

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?

Provides no when-to-use guidance at all — nothing says to prefer this over get_collection when the ID is unknown, and nothing indicates that sub-collections are reachable via the parent_id filter. The agent must infer all routing decisions from the schema alone.

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.