Skip to main content
Glama

Set a shipment's free-time terms

set_shipment_free_time
DestructiveIdempotent

Changes data: sets the demurrage and detention free days of one shipment, as the person who connected this app, and records it in the organization's audit log. They replace what the carrier's terms or an email's notice said for this shipment and outrank both from then on, so use it only when the user gives the terms or asks to correct them, and say what will change before calling it. Only the arguments you send change; null clears one, and the shipment then follows the carrier's terms or the notice again. basis says whether days are counted as "calendar" or "working" days and is kept only while a day count is set. It changes this shipment only: terms for every shipment of a carrier are set in Trackberry's settings. The answer is the shipment's free-time summary after the change and changes, each changed field with its old from and new to; sending what the shipment already has changes nothing, so it is safe to repeat. Get the shipment_id from search_shipments.

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

Input Schema

NameRequiredDescriptionDefault
basisNoHow the days are counted: "calendar" or "working" days. Kept only while a day count is set.
shipment_idYesA shipment id such as "shp_123", as returned by search_shipments.
demurrage_daysNoFree days before demurrage starts, 0 to 90, or null to follow the carrier's terms or the notice.
detention_daysNoFree days before detention starts, 0 to 90, or null to follow the carrier's terms or the notice.

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?

Beyond the annotations, it discloses that the change is attributed to the connecting user and written to the organization's audit log, that the new terms override the carrier's terms and any email notice going forward, that only supplied arguments change, that null reverts to carrier or notice terms, and that basis is retained only while a day count is set. It also explains idempotency in concrete terms — resending identical values changes nothing — which supplements idempotentHint with actual semantics.

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?

It is front-loaded with the mutation and audit-log fact, then usage conditions, then parameter semantics, then return value. Dense but nearly every clause carries decision-relevant information; a couple of clauses (e.g. the carrier/notice override restated twice) could be tightened.

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 destructive mutation with no output schema, it covers attribution, audit logging, override precedence, clearing behavior, idempotency, and what the response contains (free-time summary plus per-field from/to changes). Nothing an agent needs to call it safely 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 100%, so the baseline would be 3, but the description adds real meaning: null explicitly clears a value and reverts behavior, basis is only persisted while a day count is set, and shipment_id provenance is named. That said, it does not spell out the 0-90 bound or the calendar/working distinction beyond what the schema enumerates.

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 first sentence gives a specific verb and resource — sets demurrage and detention free days for one shipment — and immediately bounds the scope to a single shipment versus carrier-wide terms. An agent can distinguish it from set_shipment_ggn or list_carrier_free_times 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?

It states when to call: only when the user supplies the terms or asks to correct them, and to confirm the change first. It also states what to do instead for other cases (carrier-wide terms live in Trackberry's settings) and where to get the required id from search_shipments.

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