Skip to main content
Glama

Claim from collection

claim_from_collection
DestructiveIdempotent

Auto-match a deck's wants against the collection: free copies become non-shared staged allocations (real cards preferred over proxies). allow_shared:true additionally covers remaining needs with copies already allocated to OTHER decks, as explicitly shared allocations. Returns claimed / shared / missing. ALWAYS relay the shared list (with the other decks) and the missing list to the user. Every proxy it claims, owned or borrowed, is named in proxies_claimed (each claimed and shared entry carries is_proxy); proxy_warning, when not null, is one sentence: relay it to the user word for word. Claiming moves no real card: once the user has physically built the deck, sleeve_deck moves the claimed cards into it. On a tournament deck (deck.play) only real copies are claimed. They fill empty slots first, and each one past them releases one of the card's proxies (proxies_replaced, released: relay them). A released proxy that was sleeved is recorded back in "Unsorted": tell the user to take it out of the deck box and sleeve the real copy. This powers the "import deck → pull what I have → tell me what I lack" workflow.

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

Input Schema

NameRequiredDescriptionDefault
deckYesDeck id or name
allow_sharedNoDefault false

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Annotations declare destructiveHint=true and idempotentHint=true but say nothing about mechanics; the description supplies them: allocations are staged and non-shared by default, no real card moves, tournament decks claim only real copies, and each real copy past the empty slots releases one proxy (proxies_replaced, released) which may be recorded back in 'Unsorted'. It also mandates relaying the shared, missing and proxy_warning outputs to the user — context an agent cannot get from annotations.

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 purpose is front-loaded in the first sentence and every later sentence carries operational instructions rather than filler. It is dense and somewhat run-on — the proxy/proxy_warning sentence packs several distinct relay rules — but the length is justified by the proxy and relay behaviors it must convey.

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, so the description carries the return contract and does so fully: claimed / shared / missing, proxies_claimed with is_proxy per entry, proxy_warning as a single sentence, and proxies_replaced/released for tournament decks. Nothing an agent needs to call it and relay results correctly is missing.

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% and both parameters are documented, so baseline is 3. The description still adds real meaning beyond the schema: allow_shared:true is explained as 'additionally covers remaining needs with copies already allocated to OTHER decks, as explicitly shared allocations', and deck is framed in terms of its wants rather than just an id or name.

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?

States a specific verb and resource: auto-matches a deck's wants against the collection, creating staged allocations rather than moving cards. It also explicitly distinguishes itself from sleeve_deck ('Claiming moves no real card: once the user has physically built the deck, sleeve_deck moves the claimed cards into it'), so an agent can pick between the two without opening schemas.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives the selecting workflow ('import deck → pull what I have → tell me what I lack'), explains the allow_shared:true branch that reaches into other decks' allocations, and states the tournament-deck (deck.play) special case. The alternative (sleeve_deck) is named with the condition that selects it.

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