Skip to main content
Glama
mcp-local-reference

mcp-local-reference

remove_items_from_collection

Removes specified items from a collection by set difference, reports missing items as not_present, and supports dry runs with partial-failure handling.

Instructions

Remove items from a collection (set-difference per item).

    Mirror of add_items_to_collection. Items not currently in the
    collection are reported under `not_present` and silently skipped.
    Cap of 25, partial-failure semantics.
    

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": "remove_items_from_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

B3.4/5.0
Behavior4/5

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

With no annotations supplied, the description carries the full burden and does substantial work: it discloses that absent items are skipped silently rather than erroring, that they surface under a `not_present` result key, and that there is a cap of 25 with partial-failure semantics. What it omits is whether this is a pure link removal versus anything destructive to the underlying item, and any permission requirements.

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?

The core operation and its set-difference semantics are front-loaded in the first clause, followed by the sibling mirror note and then edge-case behavior. Every sentence carries information; only minor waste from the multi-line formatting that splits a single thought across lines.

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?

An output schema exists, so the description need not document the full return shape, and its mention of `not_present` is a useful pointer rather than duplication. Still, for a mutation tool with zero annotations and zero schema text, the silence on the `dry_run` default (true) is a real completeness gap that could cause an agent to report a no-op as success.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must explain all three parameters, and it largely does not. It never explains `collection_key`, never states that `item_keys` is the list subject to the 25 cap or what happens on overflow, and critically never mentions that `dry_run` defaults to true, meaning the default call may remove nothing. Only the not-present behavior of item keys is conveyed.

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?

The description names a specific verb and resource ('Remove items from a collection') and clarifies the operation's semantics as 'set-difference per item', which is materially more precise than the tool name alone. It also positions itself against a named sibling ('Mirror of add_items_to_collection'), so an agent can pair the two without opening either schema. It stops short of distinguishing itself from other removal tools such as remove_tags.

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?

Usage is implied by the set-difference framing and the pointer to add_items_to_collection as its inverse, which tells an agent this is the un-link operation rather than a delete. However, there is no explicit statement of when to choose this over delete_collection or remove_tags, and no prerequisite or permission guidance.

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