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

Critical Raw Minerals & ESG Compliance Oracle(x402)

optimize_mineral_trade_route

Read-onlyIdempotent

Compare direct marine transit with chokepoint detour corridors to calculate landed-cost arbitrage, freight, tariffs, and delivery timelines for mineral cargo.

Instructions

Autonomous trade route optimizer for AI procurement agents. Compares direct marine transit vs chokepoint detour corridors, computing landed cost arbitrage ($/MT), total freight and tariffs, and delivery timelines. 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>",
      "cargo_weight_metric_tons": "<cargo_weight_metric_tons>"
    },
    "name": "optimize_mineral_trade_route"
  }
}

Input Schema

NameRequiredDescriptionDefault
mineral_typeYesTarget mineral cargo
origin_countryYesOrigin country
destination_countryYesDestination country
cargo_weight_metric_tonsYesVolume in MT
max_carbon_budget_co2_tonsNoMax acceptable voyage CO2 tons
target_delivery_deadline_daysNoMax acceptable transit days

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed3 schema fields changedv1.0.11
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / max_carbon_budget_co2_tons / description
      Previous value: -"Max acceptable voyage CO2 tons (optional)"New value: +"Max acceptable voyage CO2 tons"
    • changedInput schema / properties / target_delivery_deadline_days / description
      Previous value: -"Max acceptable transit days (optional)"New value: +"Max acceptable transit days"
  2. Addedv1.0.6

TDQS

A3.9/5.0
Behavior5/5

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

Goes well beyond the annotations by disclosing the access model: one free One-Shot Proof, then x402 USDC payment on Polygon/Base/Arbitrum/Solana or a Pre-Funded Agent Vault key. It also states what comes back (structured JSON verdict, audit metadata, cryptographic reference). These are exactly the gating and output details an agent needs before committing a call, and they do not conflict with readOnlyHint=true or idempotentHint=true.

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?

Three sentences, front-loaded with the core capability and followed by outputs then payment terms — a sensible order with no filler. 'Autonomous' is mildly promotional, but overall the density is appropriate for a tool with a non-trivial access model.

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?

With six parameters, no output schema, and a paid-access flow, the description covers the gaps that matter: what is computed, what is returned, and what authorization is required. The only shortfall is that the two optional constraint parameters (carbon budget, deadline) are not characterized as optional filters on the verdict.

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 all six parameters are already documented in the input schema and the baseline is 3. The description adds no per-parameter meaning — it never explains how max_carbon_budget_co2_tons or target_delivery_deadline_days alter the comparison, which would have been genuinely additive.

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?

Names a specific verb and resource ('trade route optimizer') and enumerates the computation performed: direct marine transit vs chokepoint detour corridors, landed cost arbitrage ($/MT), freight, tariffs, and delivery timelines. The scope is unambiguous. It stops short of naming a sibling (e.g. estimate_maritime_freight_and_carbon) to contrast against, so an agent must infer the boundary from the wording alone.

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?

Usage is implied by 'for AI procurement agents' and by the output described (route verdict with cost arbitrage), which signals this is a decision-support call rather than a data lookup. However, there is no explicit when-to-use vs when-not-to-use guidance and no alternative tool named, even though siblings like estimate_maritime_freight_and_carbon and calculate_trade_tariffs overlap in subject matter.

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