Skip to main content
Glama

Ask for fresh tracking on a shipment

refresh_tracking
Idempotent

Changes data: asks for the latest carrier information on one shipment now, as the person who connected this app (the same as the Check now button), which updates its tracking events and ETA when the answer arrives, usually within a minute. Use it only when the user asks for a fresh update. Each refresh costs a request to the tracking service, so a shipment can be refreshed once every 5 minutes at most, by anyone; inside that window the answer is an error saying how long to wait, and you should tell the user rather than retry. A shipment with no transport reference, or that has arrived, cannot be refreshed unless its ship is followed over AIS. Answers at once that the refresh is queued; read get_shipment or get_tracking_timeline a minute later. Not recorded in the audit log: the app does not record it either.

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

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
Behavior3/5

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

Annotations already declare readOnlyHint=false, idempotentHint=true, openWorldHint=true and destructiveHint=false, so the mutation profile and external-network dependency are covered structurally. The description adds substantial value beyond that: the 5-minute per-shipment rate limit enforced 'by anyone', the error-and-wait behavior, the async queued response, the non-refreshable shipment states, and the fact this is not written to the audit log.

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-loaded with 'Changes data:' and ordered from what-it-does to when-to-use to failure modes to follow-up. The audit-log sentence is a worthwhile caveat, though a few clauses (the AIS aside, the parenthetical UI analogy) are wordier than strictly needed.

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 an asynchronous, rate-limited mutation with no output schema, the description covers the immediate response (queued), where the result eventually appears, the failure modes and how to report them, and the audit-log side effect. An agent has everything needed to call it correctly and set user expectations.

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?

The single shipment_id parameter is fully documented in the schema (100% coverage) including format example and its origin from search_shipments. The description adds validity conditions on that id — it must belong to a shipment that has a transport reference and has not arrived (unless followed over AIS) — which meaningfully constrains what values will succeed.

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 — 'asks for the latest carrier information on one shipment now' — and anchors it to a UI analogue ('the same as the Check now button'). It also distinguishes itself from the read siblings get_shipment and get_tracking_timeline, which it says to consult a minute later.

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?

Explicit when: 'Use it only when the user asks for a fresh update.' Explicit alternatives and follow-up path: read get_shipment or get_tracking_timeline a minute later. Explicit exclusions: shipments with no transport reference or already arrived cannot be refreshed, and inside the 5-minute window the correct action is to report the wait rather than retry.

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