Skip to main content
Glama

Deallocate

deallocate
Destructive

Release an allocation (fully, or quantity copies of it). Sleeved copies physically return to return_location (default "Unsorted"). Identify the allocation by allocation_id, or by holding_id + deck.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "deallocate"
  }
}

Input Schema

NameRequiredDescriptionDefault
deckNoDeck id or name (with holding_id)
quantityNo
holding_idNo
allocation_idNo
return_locationNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A3.9/5.0
Behavior4/5

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

Annotations already declare destructiveHint=true and idempotentHint=false, but the description adds real behavioral context beyond them: sleeved copies physically return to return_location and default to 'Unsorted' when unspecified. That tells the agent the side effect of the mutation, which the annotations alone do not. It still omits what happens to unsleeved copies, failure behavior for excessive quantity, or 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.

Conciseness5/5

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

Two dense sentences with the primary action front-loaded, followed by the physical consequence and then the identification options. Every clause carries information; nothing is redundant with the title or annotations.

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 destructive, no-output-schema, zero-required-parameter mutation tool, the definition covers the essentials: what is released, how much, how it is identified, and where the released items go. Minor gaps remain around validation errors and any authorization constraints, but the agent has enough to call it correctly.

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% (only `deck` is documented), so the description must compensate and largely does: it explains that `quantity` means copies of the allocation, that `return_location` defaults to 'Unsorted', and that `holding_id` pairs with `deck` as an alternative to `allocation_id`. It does not clarify whether pairing rules are enforced or what happens if neither identification route is supplied.

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 ('Release an allocation') plus the scope ('fully, or `quantity` copies'), so the agent knows exactly what is affected. It does not name the sibling `deallocate_all` or any other alternative, so the differentiation is implicit rather than explicit.

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 the two valid identification modes (allocation_id, or holding_id + deck), which is useful invocation guidance, but it never says when to prefer this tool over `deallocate_all` or when a partial release is appropriate. Usage is implied rather than stated, leaving the agent to infer the boundary between full and partial release.

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