Skip to main content
Glama

Change an expected container

update_expected_container
DestructiveIdempotent

Changes data: corrects what was planned for one expected container (the supplier, order number, produce, variety, calibre, boxes, pallets, week, origin, destination, price or notes), as the person who connected this app, and records it in the organization's audit log. What it replaces is gone, and null clears a field that can be empty. Use it only when the user asks to change a container, and say what will change before calling it. Only the arguments you send change; the rest stay, and sending the values it already has changes nothing. It works on a container in any status and does not match or cancel it. Sends nothing and calls no AI. Get the expected_container_id from list_expected_containers. Answers with the container as it is now.

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": {
      "expected_container_id": "<expected_container_id>"
    },
    "name": "update_expected_container"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxesNoHow many boxes are expected.
notesNoFree-text notes.
calibreNoThe produce's size grade.
palletsNoHow many pallets are expected.
varietyNoThe produce's variety.
currencyNoThe three-letter currency code of the price, such as "USD". Required with `unit_price`.
unit_priceNoThe agreed price, in the unit `price_basis` names.
price_basisNoWhat `unit_price` is the price of: one "box", the whole "container", or the "total" for the line's boxes. Required with `unit_price`.
supplier_idNoThe supplier: a company id such as "cmp_41", as returned by list_companies.
order_numberNoThe organization's purchase order number for the container.
produce_nameNoThe produce expected, such as "Hass avocado".
origin_locationNoWhere the container is expected to leave from.
expected_week_startNoAny day of the week the container is expected to leave the origin, YYYY-MM-DD; it is moved to that week's Monday.
destination_locationNoWhere the container is expected to arrive.
expected_container_idYesAn expected container id such as "exs_90", as returned by list_expected_containers.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.8/5.0
Behavior5/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, but the description adds real context beyond them: the write is recorded in the organization's audit log, replaced values are unrecoverable, null clears a field, only supplied arguments change, unchanged values are a no-op, and it works on containers in any status. That is a materially richer behavioral picture than the annotations alone.

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 purpose and mutation semantics before the operational caveats, and nearly every clause carries information. It is denser than it needs to be, with a long parenthetical field list and several short declarative sentences that could be grouped, but nothing 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 15-parameter mutation tool with no output schema, the description covers the ground an agent needs: id source, partial-update semantics, null handling, irreversibility, status independence, and the return value ("the container as it is now"). Nothing material is left to 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 100%, so the baseline is 3, but the description adds non-obvious semantics the schema does not: passing null explicitly clears an optional field, and re-sending existing values has no effect (consistent with the idempotent hint). It does not restate the per-parameter meanings, which is fine given the schema already covers them.

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?

Opens with a specific verb and scope ("corrects what was planned for one expected container") and enumerates the editable fields, so the agent knows exactly which resource and attributes are in play. It also distinguishes itself from similarly named siblings by stating it "does not match or cancel it," separating it from match_expected_container and unmatch_expected_container without naming them.

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 a container"), an explicit pre-call obligation ("say what will change before calling it"), and an exclusion (it does not match or cancel). It also routes the agent to the correct source for the required id: list_expected_containers.

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