Skip to main content
Glama

Change a pre-allocation

update_preallocation
DestructiveIdempotent

Changes data: changes the customer, the boxes or the tentative price of one pre-allocation, as the person who connected this app, and records it in the organization's audit log. Use it only when the user asks to change one, and say what will change before calling it. Only the arguments you send change; the rest stay. unit_price: null removes the price and its currency; a price_basis of "total" makes unit_price the total for the boxes. The line's boxes cannot be over-allocated. Get the preallocation_id from list_preallocations. To release the boxes altogether use delete_preallocation.

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": "update_preallocation"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxesNoHow many boxes to set aside.
currencyNoISO 4217 code such as "EUR". Required with unit_price.
allocateeNoThe customer the boxes are for, such as "Acme BV". Reuse the spelling list_preallocations shows.
unit_priceNoThe tentative price, per box unless price_basis is "total". A number, or a string such as "12.50".
price_basisNo"box" (default) when unit_price is per box, "total" when it is the total for these boxes.
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.4/5.0
Behavior3/5

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

Annotations already declare destructive=true, idempotent=true, readOnly=false, so the risk profile is partly covered. The description still adds real value beyond that: audit-log recording, acting as the connected user, partial-update semantics ('only the arguments you send change'), null-removal behavior, and an over-allocation constraint.

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?

Dense and front-loaded, with each sentence carrying distinct information (mutation scope, precondition, partial-update rule, price semantics, constraint, id source, alternative). Slightly overloaded for a single paragraph but no sentence is filler.

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 mutation with no output schema, it covers prerequisites, side effects (audit log, actor identity), partial-update behavior, a validation constraint, and where to obtain the required id. An agent can call this correctly without further inference.

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 already 100%, so the baseline is 3; the description earns above baseline by explaining the interaction between unit_price:null and currency, and how price_basis="total" reinterprets unit_price. It does not cover the boxes minimum or allocatee spelling rules beyond what the schema states.

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 (changes), the exact resource (one pre-allocation), and enumerates the mutable fields (customer, boxes, tentative price), plus who the actor is. It is clearly distinguishable from delete_preallocation and list_preallocations, both of which it names.

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 an explicit trigger ('use it only when the user asks to change one'), a procedural precondition ('say what will change before calling it'), a source for the required id (list_preallocations), and a named alternative for the adjacent intent (delete_preallocation to release boxes).

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