Skip to main content
Glama

Archive a shipment

archive_shipment
Idempotent

Changes data: archives one shipment, as the person who connected this app, and records it in the organization's audit log. It leaves the active lists for everyone in the organization but stays readable, and unarchive_shipment brings it back. Use it only when the user asks to archive a shipment. Safe to repeat: an archived shipment is left as it is. Answers with the shipment.

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": {
      "shipment_id": "<shipment_id>"
    },
    "name": "archive_shipment"
  }
}

Input Schema

NameRequiredDescriptionDefault
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.4/5.0
Behavior4/5

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

Adds a lot beyond the annotations: it runs as the connected user, writes to the organization's audit log, removes the shipment from everyone's active lists while keeping it readable, and that repeating the call is a no-op. The idempotency and non-destructive framing is already in the hints, so the extra credit comes from the audit-log and org-wide visibility effects, which annotations cannot convey. It does not describe failure modes (e.g. a missing or already-archived id) in detail.

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 'Changes data' signal and each sentence carries a distinct fact (audit log, visibility, reversal, trigger, idempotency, return). The final fragment 'Answers with the shipment' is clipped, and the run of short clauses reads slightly choppy, but there is 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?

There is no output schema, and the description covers the return value ('Answers with the shipment'), so nothing essential is missing for a single-parameter mutation. Permissions, audit trail, and reversibility are all addressed.

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?

Only one parameter and schema description coverage is 100%, with the schema itself showing the 'shp_123' form and the source call. The description confirms the single-shipment scope but adds no format or validation detail beyond the schema, so the baseline 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 ('archives one shipment') and immediately contrasts with the sibling that undoes it ('unarchive_shipment brings it back'), so an agent can distinguish it from both the delete and unarchive 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 an explicit when-to condition ('Use it only when the user asks to archive a shipment') and names the reversing alternative. Both the allowed trigger and the sibling are spelled out rather than inferred.

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