Skip to main content
Glama
mcp-local-reference

mcp-local-reference

add_items_to_collection

Add up to 25 items to a Zotero collection using per-item set-union, defaulting to dry run; independent patching reports partial failures while committing successful items.

Instructions

Add items to a Zotero collection (set-union per item).

    Defaults to dry_run=True. Per-call cap of 25 items. Each item
    is patched independently — partial failures are reported in the
    `failed` list while successful items are committed.
    

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_key": "<collection_key>",
      "item_keys": "<item_keys>"
    },
    "name": "add_items_to_collection"
  }
}

Input Schema

NameRequiredDescriptionDefault
dry_runNo
item_keysYes
collection_keyYes

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does well: it discloses the dry-run default, the per-call cap of 25, set-union semantics (re-adding is a no-op), and independent per-item patching with partial failures surfaced in a `failed` list. It omits permission/auth requirements and whether dry_run returns a preview payload.

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?

Four short sentences, front-loaded with what the tool does and then the behavioral caveats. The stray line-wrapping is cosmetic; no sentence is filler.

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?

For a mutating bulk tool with an output schema (so return-shape explanation is unnecessary) and zero annotation coverage, the description covers the critical risks: dry-run safety, batch cap, and partial-failure semantics. Only auth/prerequisite context 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 coverage is 0%, so the description must compensate. It clarifies dry_run's default behavior and ties a cap to item_keys, but never explains what a collection_key is or where to obtain one, and gives no format hint for the item key strings.

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 ('Add items to a Zotero collection') plus a meaningful semantic qualifier ('set-union per item'). The write direction is unambiguous against siblings like remove_items_from_collection, though no sibling is named explicitly.

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 description gives operating constraints (dry_run defaults to True, 25-item cap) that implicitly guide how to call it, but never states when to prefer this tool over remove_items_from_collection or the add_reference_by_* siblings, nor any prerequisite such as needing an existing collection key.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.