Skip to main content
Glama

Allocate

allocate

Allocate copies of a holding (holding_id from search_collection/where_is) to a deck (id or name). shared:false (default) claims free copies exclusively — the sum of non-shared allocations can never exceed the stack size. shared:true deliberately shares copies that other decks also use (always disclose: which decks, where the card physically is). status "staged" (default) earmarks without moving; "sleeved" also physically moves the cards into the deck's location (splitting the stack when only part of it is sleeved).

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": {
      "holding_id": "<holding_id>",
      "deck": "<deck>",
      "quantity": "<quantity>"
    },
    "name": "allocate"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckYesDeck id or name
sharedNo
statusNo
quantityYes
holding_idYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior5/5

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

Beyond annotations, it discloses that non-shared allocations are capped by stack size, that shared allocations require disclosure of other decks and physical location, and that sleeved status physically moves cards and can split a stack. These are meaningful side effects and constraints for a mutation tool. The annotations' destructiveHint=false is not contradicted because moving/splitting is not deletion.

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?

The description is front-loaded with purpose, then organized by shared and status modes, with no filler. Its density is justified by the behavioral details a caller 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?

For a five-parameter mutation with no output schema and only partial schema descriptions, it covers the decisions that affect correct invocation: exclusivity, sharing, and physical movement. Return-value details are not needed because no output schema exists.

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 description coverage is only 20%, so the description must compensate; it explains the defaults and behavioral meaning of shared and status, and the origin of holding_id. It leaves quantity implicit, though the schema's integer minimum makes that low-risk.

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?

The description opens with a specific verb and resource—allocate copies of a holding to a deck—and identifies the source of holding_id via search_collection/where_is. It is immediately distinguishable from deallocate and other siblings.

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

Usage Guidelines4/5

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

It gives clear parameter-choice guidance for shared and status modes, including defaults and consequences. It does not explicitly say when to avoid this tool in favor of a sibling such as allocation_conflicts, so it stops short of fully explicit when/when-not routing.

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