Skip to main content
Glama

Create Collection

create_collection
Idempotent

Creates a collection: a named bucket of library items, optionally with a description. Idempotent: an existing collection with the same name is returned unchanged. With a query and/or a tag the collection is a smart one: its members are the items the search finds, resolved at read time. Use list_collections to see the collections and what they hold.

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

Input Schema

NameRequiredDescriptionDefault
tagNoOptional tag filter. It narrows the members of a smart collection to the items carrying that tag.
nameYesCollection name.
queryNoOptional search query. With it the collection is a smart one: its members are the items the search finds.
descriptionNoOptional human description of the collection.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and non-destructive, but the description adds real substance: collisions with an existing name return the existing collection unchanged, and smart collections resolve membership at read time rather than materializing it. That read-time resolution is a behavior the agent could not infer from schema or annotations alone.

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?

Four short sentences, front-loaded with the core action, followed by idempotency, the smart-collection mode, and the sibling pointer in descending order of importance. No filler and no repetition of the parameter descriptions.

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

Completeness5/5

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

All four parameters are documented at 100% coverage, annotations cover the safety/idempotency profile, and there is no output schema to account for. The description supplies the only non-obvious gaps - name collision behavior and read-time resolution of smart collections.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so the baseline is 3; the description earns more by explaining that query and tag do not merely filter but change the collection's type into a smart one whose members are resolved on read. That converts two optional strings into a materially different creation mode.

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?

The description opens with a specific verb and resource ("Creates a collection") and immediately defines what a collection is ("a named bucket of library items"). It further distinguishes two modes of the resource - plain versus smart - so an agent knows exactly what it is building.

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?

It gives clear operative context: add a query and/or tag to get a smart collection, and it routes the agent to list_collections to inspect existing collections. It does not explicitly state when not to use it (e.g. versus add_to_collection for populating an existing static collection), which keeps it from a 5.

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.