Skip to main content
Glama
omnioperand-mcp

omnioperand-mcp

omni_demurrage_detention_fees

Calculate demurrage and container detention fees from days delayed, free time, and tiered daily rates to determine total penalties and financial exposure.

Instructions

Shipping Port Demurrage & Container Detention Fee Calculator. Calculate daily escalating demurrage (inside terminal) and detention / per diem (outside terminal) penalties for delayed ocean shipping containers. Discipline: LOGISTICS. Governing mathematical model / formula: Total Fee = Days Past Free Time × Tiered Daily Carrier Rate.

USAGE GUIDELINES:

  • WHEN TO USE: Invoke for deterministic calculation of total_penalty_owed (Total Accrued Demurrage Fee), penalty_days_billed (Billable Penalty Days), average_daily_cost (Blended Cost Per Delay Day), mitigation_status (Financial Exposure Tier) using days_delayed (Total Elapsed Calendar Days in days), port_free_days (Allowed Free Time Days in free days), tier1_daily_rate (Tier 1 Daily Fee (Days 1-5 past free)), tier2_daily_rate (Tier 2 Daily Fee (Days 6+ past free)). Guarantees exact machine floating-point precision, eliminating LLM arithmetic mistakes and formula hallucinations.

  • WHEN NOT TO USE: Do not use for qualitative evaluations or unquantified reasoning. All input parameters must be valid numerical values.

DISAMBIGUATION & BOUNDARIES:

  • Use this dedicated specialist tool for 'Shipping Port Demurrage & Container Detention Fee Calculator' rather than generic dispatchers like omni_universal_query.

  • For multi-calculation chained jobs, use 'omni_batch_calculate'.

  • To inspect schema fields, see 'omni_describe_solver'.

BEHAVIOR & SAFETY:

  • Pure deterministic computation with machine floating-point precision.

  • Read-only, idempotent, and stateless. Zero side effects or persistent state mutations.

  • Input validation: All arguments are validated against physical and domain bounds. Out-of-bounds inputs return a safe diagnostic error status without throwing runtime exceptions.

RETURNS:

  • Structured JSON object containing:

    • status (string): "success" on valid execution or "error" if validation fails

    • calculator (string): "demurrage-detention-fees"

    • category (string): "logistics"

    • name (string): "Shipping Port Demurrage & Container Detention Fee Calculator"

    • formula (string): Governing mathematical formula string

    • inputs (object): Echoed input parameter dictionary with applied defaults

    • metrics (object): Dictionary of computed outputs:

      • metrics.total_penalty_owed (Total Accrued Demurrage Fee): Formatted display string (e.g. '$2,500.00')

      • metrics.penalty_days_billed (Billable Penalty Days): Formatted display string (e.g. '10 Billable Days')

      • metrics.average_daily_cost (Blended Cost Per Delay Day): Formatted display string (e.g. '$250.00 / day')

      • metrics.mitigation_status (Financial Exposure Tier): Formatted display string (e.g. 'High Escalated Penalty Tier')

    • execution_time_ms (number): Latency in milliseconds.

Tool call template

This tool declares no required parameters. Add optional parameters from the input schema as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {},
    "name": "omni_demurrage_detention_fees"
  }
}

Input Schema

NameRequiredDescriptionDefault
days_delayedNoTotal Elapsed Calendar Days (days). Calendar days since container vessel discharge. Default: 14. Min: 1. Max: 60.
port_free_daysNoAllowed Free Time Days (free days). Standard marine terminal free time (typically 4-5 days). Default: 4. Min: 1. Max: 14.
tier1_daily_rateNoTier 1 Daily Fee (Days 1-5 past free). Initial daily penalty rate. Default: 175. Min: 50. Max: 500.
tier2_daily_rateNoTier 2 Daily Fee (Days 6+ past free). Escalated daily demurrage surcharge. Default: 325. Min: 100. Max: 800.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv0.1.2

TDQS

Score is being calculated.

Deploy Server

Other Tools