Skip to main content
Glama

Build a claim pack for a shipment

create_claim_pack
Idempotent

Changes data: starts building the claim pack of one shipment, as the person who connected this app, and records it in the organization's audit log. The pack is a ZIP of the shipment's documents and quality photos behind a cover page a claims handler can read first. It is built in the background and sends nothing to anyone; the pack belongs to the person who connected. Use it when the user asks for a claim pack or the paperwork for a claim. Answers with the pack and its id (such as "exp_9") at once, still pending: call get_claim_pack with that id until its status is ready, then give the user its download_url. Safe to repeat: a pack already being built for this shipment is returned instead of a second one. At most two packs are built at a time.

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

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.7/5.0
Behavior5/5

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

Goes far beyond the annotations: runs as the connecting person, writes to the organization's audit log, builds in the background, sends no notifications, returns immediately with a pending pack, and is capped at two concurrent packs. It also explains why idempotency holds ('a pack already being built for this shipment is returned instead of a second one'), which makes idempotentHint=true concrete.

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?

Front-loads the mutation warning ('Changes data:') and the actor identity before anything else, then usage, then return/polling behavior, then idempotency and limits. Every sentence carries distinct operational 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?

Even without an output schema, the description supplies the return shape (pack plus id, still pending), the completion path, the side effects (audit log, background build), and the concurrency ceiling. Nothing needed to invoke and follow through 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 coverage is 100% and the single shipment_id parameter is fully documented in the schema, so the description relies on the schema for parameter detail. It adds only the framing that the pack covers 'one shipment'. Baseline 3 is appropriate given the schema does the work.

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: 'starts building the claim pack of one shipment', plus what the pack actually is (ZIP of documents and quality photos behind a cover page). It is clearly distinguishable from get_claim_pack, which it names as the polling counterpart.

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 when the user asks for a claim pack or the paperwork for a claim') and an explicit follow-up procedure: call get_claim_pack with the returned id until status is ready, then hand over download_url. The alternative path is spelled out rather than left to inference.

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