Skip to main content
Glama

get_demurrage_free_time

Read-only

Free time (days) before demurrage, detention or storage charges start, for a carrier at a port or country. Returns the carrier's OWN published figure when available, otherwise an INDICATIVE cross-carrier average (flagged is_estimate, shown without prejudice). Use for 'how many free days does give at '.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
categoryNodemurrage (in-port), detention (out-of-port), combined_dd, or free_time_storagedemurrage
directionNoimport
carrier_codeNoSCAC, e.g. CMDU (CMA CGM), MAEU (Maersk), HLCU (Hapag), ZIMU (ZIM). Omit to get the indicative cross-carrier average directly.
country_iso2NoISO-3166 alpha-2, e.g. FR. Used when no port is given, or as fallback grain.
port_unlocodeNo5-char UN/LOCODE, e.g. FRMRS (Marseille). Provide this or country_iso2.
container_typeNoe.g. 20GP, 40GP, 40HC, 20RF40GP

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

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered. The description adds meaningful behavioral context beyond that: it returns the carrier's own published figure when available and otherwise an indicative cross-carrier average flagged is_estimate, 'shown without prejudice' – a real quality caveat about the returned value.

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?

Three tight clauses, front-loaded with the core definition, then the return-quality caveat, then the usage trigger. No filler sentences.

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 so return structure need not be explained, annotations carry the safety profile, and the description covers the one thing structured data cannot convey – whether the returned figure is authoritative or an estimate. Nothing needed to call it correctly 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 description coverage is 83%, so the schema already documents all six parameters including enums and default values. The description adds no syntax or format detail beyond what the schema provides, 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 resource (free time days before demurrage/detention/storage charges) and its scope (a carrier at a port or country). An agent can tell exactly what is being retrieved, and it is distinct from sibling tools like get_demurrage_report.

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?

Provides an explicit usage trigger ('how many free days does <carrier> give at <port>') and explains the fallback path for when a carrier figure is absent. It does not, however, contrast itself against the sibling get_demurrage_report, so routing between the two is 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.