Skip to main content
Glama

get_demurrage_report

Read-only

Demurrage and detention risk report: which containers are near or past their free days, the daily rates, and the projected cost. Call this when asked about demurrage risk or detention fees. Free days are resolved per shipment from the customer's own contract terms first, then the carrier's published tariff, then a cross-carrier benchmark — terms_source and confidence on each item say which was used, so an estimated tariff figure must be reported as estimated, not as their contract. Read the counters before drawing a conclusion: unassessable_containers are boxes whose free time could not be resolved at all (an empty item list alongside a non-zero count means "cannot assess", NEVER "no risk"), uncosted_containers are at risk with no daily rate on file (so total_at_risk_usd is a floor, not the exposure), and truncated: true means the fleet is larger than the report. Pass container_id to assess a single shipment: scope_container.verdict is one of at_risk / within_free_time / not_discharged / no_terms / no_destination / not_demurrage_eligible.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
container_idNoOptional: scope to a single container ID. Omit for portfolio-wide report.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesFalse never appears here — failures arrive as tool errors.
codeNoOn an empty result: NOT_FOUND (no record after asking) or NO_EVENTS (record, nothing filed).
dataNo
resultYes"empty" means the query succeeded and there is nothing to report.
messageNoOn an empty result: what the emptiness means.

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already declare the read-only, non-destructive, open-world profile, so the bar is lower, yet the description adds substantial behavioral context: the precedence order for resolving free days (contract, then tariff, then benchmark), and how terms_source/confidence must be reported. It also flags cost-floor and truncation semantics that the annotations cannot convey.

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 dense and long, but front-loaded and each clause carries operational weight — counters, precedence, and edge-case meanings. Minor verbosity from the repeated emphasis on the estimated-figure caveat, but nothing is 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?

An output schema exists, yet the description supplies the interpretation rules an agent cannot infer from field names: empty item list plus non-zero unassessable count means 'cannot assess', total_at_risk_usd is a floor, and truncated signals a partial fleet. Both the no-arg and single-container paths are covered.

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?

Only one parameter with 100% schema coverage, so the baseline is 3. The description goes beyond the schema by explaining what scoping to a container yields (scope_container.verdict and its enum values), which the bare schema does not.

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 output artifact (demurrage and detention risk report) and enumerates exactly what it contains: containers near or past free days, daily rates, projected cost. This clearly distinguishes it from sibling read tools like get_demurrage_free_time and get_container_detail.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Explicitly states when to call it ('when asked about demurrage risk or detention fees') and when to narrow scope (pass container_id for a single shipment vs omit for portfolio-wide). It does not explicitly name or exclude the closely related get_demurrage_free_time sibling, which would have made routing unambiguous.

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.