Skip to main content
Glama
EUDR Compliance & TRACES-NT Agent

EUDR Compliance & TRACES-NT Agent

eudr_create_milestone_escrow

Creates a 3-stage USDC escrow for EUDR trade, locking funds until satellite, DDS, and customs milestones pass and optionally splitting first-mile payouts.

Instructions

Creates a 3-stage conditional USDC escrow agreement with optional first-mile split payouts to smallholder cooperatives and mills (Stage 1: Satellite 30%, Stage 2: DDS 40%, Stage 3: Customs Green Lane 30%). Use to lock trade funds prior to shipment verification. Returns escrow_id, status, and milestone_schedule.

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": {
      "buyer_agent_id": "<buyer_agent_id>",
      "buyer_wallet": "<buyer_wallet>",
      "seller_agent_id": "<seller_agent_id>",
      "seller_wallet": "<seller_wallet>",
      "amount_usdc": "<amount_usdc>",
      "hs_code": "<hs_code>",
      "commodity_description": "<commodity_description>"
    },
    "name": "eudr_create_milestone_escrow"
  }
}

Input Schema

NameRequiredDescriptionDefault
chainNoBlockchain network for settlement.Base (Low Gas $0.01)
hs_codeYesRegulated commodity HS code (e.g. '18010000', '44071100').
amount_usdcYesEscrow lock amount in USDC (must be > 0).
buyer_walletYesBuyer EVM or Solana wallet address for refunds.
seller_walletYesSeller EVM or Solana wallet address for payout.
buyer_agent_idYesCalling buyer agent ID or system identifier.
seller_agent_idYesTarget seller agent ID or supplier identifier.
split_recipientsNoOptional first-mile multi-party split distribution objects with recipient wallet and percentage share.
milestone_weightsNoPercentage weights for milestones 1, 2, and 3 summing to 100 (default: [30, 40, 30]).
declared_net_mass_kgNoDeclared shipment net weight in kilograms.
commodity_descriptionYesCommercial description of the trade shipment batch.

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed15 schema fields changedv0.1.6
    • changedInput schema / properties / amount_usdc / description
      Previous value: -"Escrow lock amount in USDC."New value: +"Escrow lock amount in USDC (must be > 0)."
    • addedInput schema / properties / amount_usdc / minimum
      Added value: +0.01
    • changedInput schema / properties / buyer_agent_id / description
      Previous value: -"Calling buyer agent ID / system name."New value: +"Calling buyer agent ID or system identifier."
    • changedInput schema / properties / buyer_wallet / description
      Previous value: -"Buyer EVM / Solana wallet address for refunds."New value: +"Buyer EVM or Solana wallet address for refunds."
    • changedInput schema / properties / commodity_description / description
      Previous value: -"Description of the trade shipment batch."New value: +"Commercial description of the trade shipment batch."
    • changedInput schema / properties / declared_net_mass_kg / description
      Previous value: -"Declared shipment net weight in kg."New value: +"Declared shipment net weight in kilograms."
    • addedInput schema / properties / declared_net_mass_kg / minimum
      Added value: +0.01
    • changedInput schema / properties / milestone_weights / description
      Previous value: -"Weight percentages for milestones 1, 2, 3 (default: [30, 40, 30])."New value: +"Percentage weights for milestones 1, 2, and 3 summing to 100 (default: [30, 40, 30])."
    • addedInput schema / properties / milestone_weights / items
      Added value: +{
      +  "type": "number"
      +}
    • addedInput schema / properties / milestone_weights / maxItems
      Added value: +3
    • addedInput schema / properties / milestone_weights / minItems
      Added value: +3
    • changedInput schema / properties / seller_agent_id / description
      Previous value: -"Target seller agent ID / supplier identifier."New value: +"Target seller agent ID or supplier identifier."
    • changedInput schema / properties / seller_wallet / description
      Previous value: -"Seller EVM / Solana wallet address for payout."New value: +"Seller EVM or Solana wallet address for payout."
    • changedInput schema / properties / split_recipients / description
      Previous value: -"First-mile multi-party split distribution (e.g. Smallholder Co-op 75%, Mill 25%)."New value: +"Optional first-mile multi-party split distribution objects with recipient wallet and percentage share."
    • addedInput schema / properties / split_recipients / items
      Added value: +{
      +  "type": "object"
      +}
  2. Addedv0.1.2

TDQS

A3.8/5.0
Behavior3/5

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

With no annotations, the description carries the full burden. It usefully discloses the conditional 3-stage release structure and that returns include escrow_id, status, and milestone_schedule, but says nothing about permissions, whether funds are actually locked at creation versus via a separate funding call (a sibling eudr_fund_agent_escrow exists), or dispute/reversal behavior.

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, purpose first, with the stage/weight detail consolidated into a single parenthetical. The parentheses are dense but every clause carries information; no filler.

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 an 11-parameter financial tool with no annotations and no output schema, the definition covers what is created but leaves the funding lifecycle ambiguous — notably whether creation actually moves USDC and how this relates to the separate fund/release tools. Return values are at least summarized, which offsets some of the gap.

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 the baseline is 3. The description does add meaning by mapping the default [30, 40, 30] weights to concrete verification stages (Satellite, DDS, Customs Green Lane) and by characterizing split_recipients as first-mile payouts, but it does not explain buyer/seller agent ID pairing or chain choice.

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 verb and a highly specific resource: a 3-stage conditional USDC escrow with named milestones and weights. The parenthetical stage breakdown makes the tool's scope immediately distinguishable from generic escrow creation.

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?

"Use to lock trade funds prior to shipment verification" gives a clear triggering condition. However, it offers no exclusions or named alternatives, so an agent cannot tell from the text alone why it would pick this over the sibling eudr_create_agent_escrow.

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