Skip to main content
Glama

Remove a pre-allocation

delete_preallocation
DestructiveIdempotent

Deletes data: removes one pre-allocation, freeing its boxes, as the person who connected this app, and records it in the organization's audit log. It cannot be undone, only created again. Use it only when the user asks to release, cancel or remove a pre-allocation, and confirm which one (customer, boxes, pallet) before calling it. Get the preallocation_id from list_preallocations. Answers with the pre-allocation as it was.

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": {
      "preallocation_id": "<preallocation_id>"
    },
    "name": "delete_preallocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
preallocation_idYesA pre-allocation id such as "pre_78", as returned by list_preallocations.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already flag destructiveHint and idempotentHint, but the description adds meaningful context: it acts as the app-connecting identity, writes to the organization's audit log, is irreversible ('cannot be undone, only created again'), and returns the pre-allocation as it was. That is materially more than the annotations convey.

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?

Front-loaded with the destructive action and its consequences, followed by usage constraints and the identifier's source. Dense with no filler, though the phrase 'as the person who connected this app' is slightly convoluted and could be phrased more directly.

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 destructive, single-parameter mutation with no output schema, it covers irreversibility, prerequisites, identity/audit semantics, and the return value. Nothing an agent needs in order to call it safely 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 description coverage is 100% and the single parameter already documents the 'pre_78' format and its origin in list_preallocations. The description largely echoes this, adding only the hint that customer/boxes/pallet help confirm the right record, so the baseline 3 applies.

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 ('removes one pre-allocation') plus the side effects ('freeing its boxes', audit log entry). It is clearly distinguishable from the sibling create/update/list pre-allocation tools without opening any schema.

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?

Explicitly restricts usage to when the user asks to 'release, cancel or remove' a pre-allocation and adds a required confirmation step (customer, boxes, pallet) before calling. It also names the source of the identifier, list_preallocations, so the agent knows the preceding step.

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