Skip to main content
Glama

List Collections

list_collections
Read-onlyIdempotent

Lists the user's collections with their kind (manual or smart), the number of items each holds and the ids of the items it holds (at most 20 per collection, with items_truncated when there are more). A smart collection holds the items its query finds, resolved at read time. Use add_to_collection to put items in and remove_from_collection to take them out.

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
limitNoMax collections to return (at most 50).
offsetNoPagination offset.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, so the safety profile is covered. The description adds real value beyond them: item ids are capped at 20 per collection with an items_truncated signal, and smart collections resolve their query at read time rather than storing membership. It does not spell out the shape of each collection entry (id/name), which is the main remaining gap.

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?

Three sentences, front-loaded with return shape, then the smart-collection semantic, then the write-path routing. Every clause carries distinct information; nothing is repeated from the title or restated redundantly.

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?

With no output schema, the description must explain returns, and it covers the key fields and the truncation behavior adequately for a small two-parameter read tool. Minor gap: it never mentions the pagination envelope the limit/offset parameters imply.

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 both limit and offset fully documented, including the 50 maximum, so the structured field already carries parameter meaning. The description neither mentions pagination nor warns that per-collection item truncation is separate from collection-level paging, adding nothing beyond the schema — baseline 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Lists the user's collections') and enumerates what comes back: kind (manual or smart), item count, and item ids. It also distinguishes the two collection kinds and routes write operations to add_to_collection/remove_from_collection, so an agent can tell it apart from the mutation siblings without opening a schema.

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?

Clearly implies usage as the browse/enumerate entry point and explicitly names add_to_collection and remove_from_collection for membership changes, which prevents accidental misuse of this read-only tool. It stops short of stating exclusions such as when to prefer list_items or list_tags for item- or tag-centric browsing.

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.