Skip to main content
Glama

Add to Collection

add_to_collection
Idempotent

Adds library items to a collection, addressed by collection name or id. Items that are not yours, that do not exist, or that are already in the collection are skipped: the result reports how many were added. At most 100 items are processed per call.

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": {
      "collection": "<collection>",
      "item_ids": "<item_ids>"
    },
    "name": "add_to_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
item_idsYesLibrary item ids to add (at most 100).
collectionYesCollection name or id.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare idempotentHint=true and destructiveHint=false, so the description's added value is the partial-failure contract: non-owned, nonexistent, and duplicate items are silently skipped and the result reports only how many were added. That is genuinely useful behavior an agent cannot get from the annotations. It stops short of explaining what the result looks like on total failure or whether the 100 cap errors or truncates.

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 sentences, zero filler, with the core action front-loaded and the skip/count semantics following. Every clause carries information an agent needs.

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?

There is no output schema, and the description compensates by stating what the result reports (number added) and how skipped items are handled. For a two-parameter, non-destructive, idempotent add operation, nothing essential to a correct call is missing.

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%, so both parameters (item_ids, collection) are already documented in the schema. The description restates the name-or-id addressing and the 100-item cap without adding format or syntax detail. Baseline 3 is appropriate when the schema carries the parameter semantics.

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 ('Adds library items to a collection') plus the addressing scheme (name or id). An agent can immediately tell this apart from remove_from_collection or create_collection. It does not explicitly name a contrasting sibling, which keeps it at 4 rather than 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 use case is implied clearly (bulk-adding existing library items to an existing collection), but there is no explicit when-to-use guidance, no prerequisite note (e.g. the collection must already exist), and no pointer to remove_from_collection or create_collection as alternatives. Adequate but leaves routing to inference.

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.