Skip to main content
Glama

Accept a suggested match for an expected container

accept_expected_container_suggestion
DestructiveIdempotent

Changes data: confirms that a shipment Trackberry suggested is the expected container, which matches the container to it as match_expected_container does, as the person who connected this app, and records it in the organization's audit log. The suggestion is the matcher's guess from the order number, supplier, produce and week, so confirm with the user before calling it, and say which container and shipment. The suggestions of a container (this one and its other suggestions) are discarded for good once it is matched and never come back, so a repeat finds none. A suggestion somebody set aside, and a shipment that already holds all the containers it can, are refused. Sends nothing and calls no AI. Get the suggestion's id from the suggestions of a planned container in list_expected_containers.

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>",
      "suggestion_id": "<suggestion_id>"
    },
    "name": "accept_expected_container_suggestion"
  }
}

Input Schema

NameRequiredDescriptionDefault
suggestion_idYesA suggestion id such as "esg_14", from the `suggestions` of an expected container in list_expected_containers.
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.4/5.0
Behavior5/5

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

Goes well beyond the annotations: discloses that this acts as the connecting user, writes to the organization's audit log, discards all of the container's suggestions permanently, and refuses suggestions that were set aside or shipments already at their container limit. It also states side effects explicitly (sends nothing, calls no AI), which is exactly the context annotations cannot carry. The note that "a repeat finds none" usefully tempers the idempotentHint by warning that retries will fail rather than silently succeed.

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 key fact ("Changes data:") and every sentence carries information about effects, preconditions or refusals. It is dense and sentence-long in places, with minor redundancy between the schema and the final id-sourcing sentence, but little is wasted.

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 two-parameter destructive mutation with no output schema, the description covers the matching semantics, audit side effect, permanence of the suggestion discard, refusal cases, and where to obtain inputs. Nothing an agent needs before calling 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 both parameters already document their id formats and provenance in list_expected_containers. The description restates the suggestion-id source but adds no new semantics for expected_container_id beyond what the schema says, so the baseline of 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 ("confirms that a shipment ... is the expected container") and distinguishes itself from match_expected_container, which performs the same match but is not driven by a suggestion. An agent can tell exactly what this does and how it differs from the manual matching path.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives clear preconditions: the id must come from the `suggestions` of a planned container in list_expected_containers, and the user must be consulted because the suggestion is only the matcher's guess from order number, supplier, produce and week. It does not explicitly route to reject_expected_container_suggestion as the alternative for a suggestion the user declines, leaving that inference to the sibling name.

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