Skip to main content
Glama

add_to_collection

Idempotent

Put an existing item into a collection. Example: collection_id, item_id.

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_id": "<collection_id>",
      "item_id": "<item_id>"
    },
    "name": "add_to_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
reasonNoWhy, for the change history
item_idYesItem ID
collection_idYesCollection ID

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changed
    • changedInput schema / properties / collection_id / description
      Previous value: -"The collection ID"New value: +"Collection ID"
    • changedInput schema / properties / item_id / description
      Previous value: -"The item ID to add"New value: +"Item ID"
    • changedInput schema / properties / reason / description
      Previous value: -"Why this change was made (shown to user in change history)"New value: +"Why, for the change history"
  2. First observed

TDQS

C2.9/5.0
Behavior2/5

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

The annotations already declare readOnlyHint=false, idempotentHint=true and destructiveHint=false, so the safety profile is covered. The description adds only the constraint that the item must already exist; it says nothing about behavior when the item is already in the collection, permission requirements, or what the 'reason' field affects, and notably never mentions the change-history side effect of that parameter.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The first sentence earns its place as the purpose statement. The second sentence, 'Example: collection_id, item_id', is not an example at all — it just repeats two schema property names and adds no information, making it dead weight.

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?

For a simple three-parameter mutation with full input-schema documentation, complete annotations and no output schema, the minimum is present. What's missing is the relational context that matters here: how this differs from add_item and what the required-versus-optional distinction for 'reason' means in practice.

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 all three parameters are documented in the schema itself, establishing the baseline of 3. The description only restates two of the three names in its 'Example' line and adds no meaning beyond the schema.

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 concrete verb and resource — 'Put an existing item into a collection' — and the word 'existing' implicitly separates it from the create-style sibling add_item. It stops short of naming any sibling explicitly, so an agent must still infer the boundary.

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?

No guidance on when to use this versus add_item or create_collection, and no mention of when not to use it (e.g. for items that don't exist yet) or how it relates to remove_from_collection. The reader is left to infer all routing decisions.

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.

Resources