Skip to main content
Glama

Plan expected containers

create_expected_containers

Changes data: plans what a supplier has agreed to send, before any shipping document exists, as the person who connected this app, and records it in the organization's audit log once. One container, or a schedule such as "5 a week for 2 weeks, then 3 a week for 5" with phases (up to 200 containers in all), every container with the same fields and its week one after the last. Use it only when the user asks to plan containers, and say what you are about to plan first: it is not idempotent, calling it twice plans twice, so check list_expected_containers before repeating. Only expected_week_start is required. A price needs its price_basis and a currency. A supplier that is not in the organization is refused: find it with list_companies. Sends nothing and calls no AI. Answers with the containers made and their ids such as "exs_90". Change one with update_expected_container; canceling and reopening are done in Trackberry only.

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_week_start": "<expected_week_start>"
    },
    "name": "create_expected_containers"
  }
}

Input Schema

NameRequiredDescriptionDefault
boxesNoHow many boxes are expected.
notesNoFree-text notes.
phasesNoA schedule instead of one container: each phase is `per_week` containers a week for `weeks` weeks, one phase starting the week after the previous ends. One container for one week when left out.
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_startYesAny 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.

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?

Goes well beyond the annotations by disclosing the audit-log write, the non-idempotency consequence ("calling it twice plans twice"), the supplier-not-in-organization refusal, the 200-container ceiling, and that it sends nothing and calls no AI. It also describes the return shape (container ids like "exs_90") despite there being no output schema.

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-loads the mutation warning and audit-log fact, then sequences schedule semantics, guardrails, requirements, and failure modes. It is dense and slightly run-on across the long middle sentence, but nearly every clause carries operational information.

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, non-idempotent mutation with no output schema, the description covers safety, required fields, conditional dependencies, scheduling semantics, refusal conditions, and the response format. Nothing essential to calling it correctly is missing.

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%, but the description adds real meaning: only expected_week_start is required, a price requires price_basis and currency together, and phases chain week-after-week up to 200 containers total — a cap absent from the schema's maxItems/maxima. The pairing constraint is largely restated from the schema, so it falls short of a 5.

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 — planning expected containers before any shipping document exists — and distinguishes itself from siblings by naming list_expected_containers for checking and update_expected_container for changes. An agent can tell what this creates and how it differs from the list/update tools without opening a 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?

Gives explicit when-to-use (only when the user asks to plan containers), a mandated pre-step (say what you are about to plan first), and a warning to check list_expected_containers before repeating because it is not idempotent. It also routes out-of-scope operations: changes go to update_expected_container, and cancel/reopen happen in Trackberry only.

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