Skip to main content
Glama
Critical Raw Minerals & ESG Compliance Oracle(x402)

Critical Raw Minerals & ESG Compliance Oracle(x402)

estimate_maritime_freight_and_carbon

Read-onlyIdempotent

Calculate maritime freight costs, voyage distance, transit time, chokepoint surcharges, IMO CII rating, and EU CBAM carbon costs for mineral cargo; returns JSON with audit metadata.

Instructions

Calculates maritime voyage distance (nautical miles), transit duration, freight charter costs ($/MT), chokepoint detour surcharges (Red Sea/Panama), IMO CII rating, and EU CBAM carbon costs. Returns structured JSON verdict, audit metadata, and cryptographic reference. Requires x402 USDC payment (Polygon/Base/Arbitrum/Solana) or Pre-Funded Agent Vault key after 1 free One-Shot Proof.

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": {
      "mineral_type": "<mineral_type>",
      "origin_country": "<origin_country>",
      "destination_country": "<destination_country>"
    },
    "name": "estimate_maritime_freight_and_carbon"
  }
}

Input Schema

NameRequiredDescriptionDefault
cii_ratingNoIMO Carbon Intensity Indicator (CII) vessel efficiency rating from 'A' (best) to 'E' (worst).A
mineral_typeYesMineral cargo
origin_countryYesOrigin country
avoid_chokepointsNoChokepoints to avoid
destination_countryYesDestination country
cargo_weight_metric_tonsNoTotal mineral cargo deadweight tonnage in metric tons (must be > 0).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv1.0.11
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / avoid_chokepoints / description
      Previous value: -"Chokepoints to avoid (e.g. ['RED_SEA', 'PANAMA_CANAL'])"New value: +"Chokepoints to avoid"
    • addedInput schema / properties / cargo_weight_metric_tons / description
      Added value: +"Total mineral cargo deadweight tonnage in metric tons (must be > 0)."
    • addedInput schema / properties / cii_rating / description
      Added value: +"IMO Carbon Intensity Indicator (CII) vessel efficiency rating from 'A' (best) to 'E' (worst)."
  2. Addedv1.0.6

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), yet the description adds material behavior beyond them: a metered payment model, the free-tier prerequisite, and the shape of the response (structured JSON verdict, audit metadata, cryptographic reference). It does not state rate limits, per-call pricing, or failure modes when payment is missing, which keeps it below 5.

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?

Two sentences, front-loaded with the computed outputs and backed by the payment constraint, with no filler. The output enumeration is dense but each item is a distinct deliverable, so the length is earned; a light restructure separating capabilities from billing would make it cleaner.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 6-parameter, read-only analytical tool with full schema coverage and no output schema, the description covers inputs implicitly, outputs explicitly, and the access/payment model. What is missing is whether results are deterministic estimates versus live market data given the openWorld hint, and any indication of result precision or currency assumptions.

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 100%, so every parameter, including the cii_rating enum and cargo_weight_metric_tons default, is already documented in structured data. The description only implies that avoid_chokepoints drives the Red Sea/Panama surcharge calc and that the two country fields define the route; it adds no format, unit, or validation detail beyond the schema. Baseline 3 applies.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb (Calculates) and enumerates exactly what is computed: distance in nautical miles, transit duration, charter costs per MT, chokepoint surcharges, CII rating, and CBAM costs, plus the return envelope. That is far more specific than the tool name alone. It stops short of differentiating from the sibling optimize_mineral_trade_route, which is a plausible alternative for routing questions.

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

Usage Guidelines3/5

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

The second sentence gives a real operational prerequisite (one free One-Shot Proof, then x402 USDC payment on named chains or a Pre-Funded Agent Vault key), which helps an agent decide whether it can afford to call. However, there is no explicit statement of when to use this versus optimize_mineral_trade_route or calculate_trade_tariffs, and no exclusion guidance.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.