Skip to main content
Glama

Undo the match of an expected container

unmatch_expected_container
DestructiveIdempotent

Deletes data: undoes the match of an expected container to a shipment, as the person who connected this app, and records it in the organization's audit log. The container goes back to planned and forgets its shipment (and the date and person that matched it); the proformas already copied onto the shipment stay there as documents, and the container can be matched again. Use it only when the user says the match was wrong, and say which container and shipment before calling it. A container that is not matched is left as it is, so it is safe to repeat. Sends nothing and calls no AI. Get the expected_container_id from list_expected_containers (status matched).

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

Input Schema

NameRequiredDescriptionDefault
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.3/5.0
Behavior3/5

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

Annotations already declare destructiveHint=true and idempotentHint=true, yet the description still adds real substance: it names the actor ('as the person who connected this app'), the audit-log record, exactly what is lost (the shipment link, match date, and matching person) versus what survives (proformas remain as documents), and the no-side-effect guarantee ('Sends nothing and calls no AI'). It only restates idempotency in plainer words, which is minor redundancy given the annotations.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The destructive warning is front-loaded in three words, and the subsequent clauses move from effect to guidance to input sourcing in a logical order. Despite its length, every sentence contributes distinct information with no 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 single-parameter mutation with no output schema, the description covers the safety profile, reversibility, post-state ('goes back to planned'), side effects, audit behavior, and id sourcing. Nothing an agent needs in order to call this correctly 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?

With one parameter at 100% schema description coverage, the schema already carries the burden, and the description largely repeats it. The one genuinely additive detail is the '(status matched)' filter hint, which helps the agent pick a valid id from list_expected_containers, but that is a marginal gain over the schema text.

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?

The description opens with a specific verb and resource: 'undoes the match of an expected container to a shipment,' which is the precise inverse of the sibling match_expected_container. An agent can distinguish it from match/accept/reject variants 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?

It states an explicit condition for use ('only when the user says the match was wrong') plus a conversational prerequisite ('say which container and shipment before calling it'), and it tells the agent exactly where to source the id: list_expected_containers filtered to status matched. That is when-to-use plus how-to-obtain-input in two sentences.

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