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

Critical Raw Minerals & ESG Compliance Oracle(x402)

harmonize_trade_flow

Orchestrates end-to-end critical mineral trade flows—deal negotiation, maritime eBL logistics, EUDR satellite audits, multi-chain escrow, and clearing webhooks—into structured JSON verdicts.

Instructions

Fluidly orchestrates an end-to-end critical mineral trade flow ('like flowing water') across A2A deal negotiation, maritime logistics & eBL verification, EUDR Sentinel-1/2 satellite concession audit, multi-chain escrow preparation (Polygon/Base/Arbitrum/Solana), and A.GRID clearing webhook dispatch. 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": {
      "deal_id": "<deal_id>",
      "commodity": "<commodity>",
      "volume_tons": "<volume_tons>",
      "unit_price_usd_per_ton": "<unit_price_usd_per_ton>",
      "origin_country": "<origin_country>",
      "buyer_agent_address": "<buyer_agent_address>",
      "seller_agent_address": "<seller_agent_address>"
    },
    "name": "harmonize_trade_flow"
  }
}

Input Schema

NameRequiredDescriptionDefault
deal_idYesUnique trade deal identifier
commodityYesMineral commodity (e.g. COPPER_CATHODE, NICKEL_MHP, LITHIUM_HYDROXIDE, SILVER_DORE)
volume_tonsYesCargo volume in metric tons
carrier_codeNoOcean carrier codeMSCU
concession_idNoOptional mining concession ID for EUDR satellite screening
origin_countryYesSource origin country code (e.g. CHL, IDN, AUS, COD, ARG, BRA)
ebl_document_idNoOptional UNCITRAL MLETR Electronic Bill of Lading ID
settlement_chainNoTarget settlement networkpolygon
buyer_agent_addressYesAutonomous buyer agent wallet address
destination_countryNoImporter destination jurisdiction (USA, EU, KOR, etc.)USA
seller_agent_addressYesAutonomous seller agent wallet address
unit_price_usd_per_tonYesAgreed unit price in USD per ton

Schema Changelog

Changes observed during successful MCP inspections.

  1. Addedv1.0.11

TDQS

A3.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, openWorldHint=true, idempotentHint=false, and destructiveHint=false, but the description adds genuinely non-obvious operational context: an x402 USDC payment gate across four chains or a Pre-Funded Agent Vault key, and a single free One-Shot Proof. It also discloses the return shape (structured JSON verdict, audit metadata, cryptographic reference), which has no output schema to cover it. It does not explain what happens on partial failure across the five chained stages or what side effects escrow prep and webhook dispatch leave behind, keeping 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.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The critical information (scope and payment requirement) is front-loaded, and the piece is short overall. However, it is a single run-on sentence with marketing filler ('Fluidly', 'like flowing water') and a dense stage list that is harder to parse than a short bulleted structure would be.

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

Completeness3/5

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

For a 12-parameter, 7-required, no-output-schema orchestrator spanning five external stages, the description covers scope, payment/auth, and return contents, which is the core. Missing are sequencing semantics and failure behavior: whether all stages must succeed atomically, whether a paid call is re-charged on retry, and what the verdict contains on partial success. Those gaps matter more here than for a simple tool.

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?

The description adds no per-parameter meaning; it never mentions deal_id, commodity, concession_id, settlement_chain, or the agent addresses. With schema description coverage at 100%, the schema already carries that burden, so the baseline of 3 applies. The settlement chain list in the prose (Polygon/Base/Arbitrum/Solana) merely echoes the enum.

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 concrete action (orchestrating an end-to-end trade flow) and enumerates the specific stages it covers: A2A deal negotiation, maritime logistics and eBL verification, EUDR Sentinel satellite audit, multi-chain escrow prep, and clearing webhook dispatch. That is far more specific than the bare name and separates it from single-step siblings like propose_a2a_trade_deal or eudr_satellite_mine_audit. It stops short of 5 because the flowery framing ('like flowing water') obscures rather than sharpens the one-line purpose.

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 only implied: the breadth of stages suggests this is the aggregate/orchestration entry point versus the granular siblings, and the mention of '1 free One-Shot Proof' hints it is a trial-gated composite call. There is no explicit statement of when to choose this over chaining the individual sibling tools, nor any when-not/exclusion guidance.

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