Logistics & Postal Intelligence · Deterministic Engine Slug: iso_country_currency_resolver 0-LLM Deterministic

ISO-3166-1 Country & ISO-4217 Currency Resolver

Cross-border payment gateways, customs forms, and ERP localization tables regularly mix alpha-2 ('DE'), alpha-3 ('DEU'), numeric ('276'), and currency minor-unit rules (JPY 0 vs EUR 2).

5-Second Try-Now Console Connect via /mcp FastMesh SuperBus

How It Works & Live Probe Telemetry

Executing locally in 0.1 ms, this deterministic standard resolver normalizes any combination of country code/name and currency code into authoritative ISO-3166-1 and ISO-4217 records. Querying country='DE' and currency='EUR' resolves DE -> DEU (276, Germany) and EUR (978, minor_unit: 2). Knowing minor_unit prevents off-by-100x Stripe or Creem integer-cent conversion bugs on zero-decimal currencies like JPY or KRW.

Verified Endpoint & Billing Contract

MCP Tool Nameiso_country_currency_resolver
Subdomain & Modelogistics_address · deterministic
REST EndpointPOST https://devour-com.fastmesh.dev/v1/organs/iso_country_currency_resolver/invoke
MCP EndpointPOST https://devour-com.fastmesh.dev/mcp (also mounted on https://mcp.fastmesh.dev/mcp)
Verified Probe Latency0.1 ms (HTTP 200, verified 2026-12-02T10:50:00Z)
Archive Cache TTL30 days (2592000s) cross-tenant verified-hit cache
Empty / Error RuleCharge $0.00 when country/currency code or name yields zero matches in standard tables.
Plans & PrivacyStarter $19/mo · Pro $79/mo · Scale $249/mo · Zero trajectory resale

Production Use Cases

ScenarioTrigger InputDeterministic Output Value
Payment Gateway Minor-Unit GuardConvert decimal prices into integer minor units for checkoutSupplies exact ISO-4217 minor_unit (0, 2, or 3 decimals)
Customs HarmonizationLegacy ERP outputs numeric code 276 instead of DEMaps between numeric, alpha-2, alpha-3, and official country name
Catalog Locale BootstrappingValidate merchant shipping country and settlement currencyVerifies both fields in one deterministic request

MCP JSON-RPC 2.0 & REST Invocation Examples

Call via MCP tools/call on https://devour-com.fastmesh.dev/mcp:

{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "iso_country_currency_resolver",
    "arguments": {
      "country": "DE",
      "currency": "EUR"
    }
  }
}

Or invoke directly via REST (POST /v1/organs/iso_country_currency_resolver/invoke):

curl -sS -X POST https://devour-com.fastmesh.dev/v1/organs/iso_country_currency_resolver/invoke \
  -H 'Content-Type: application/json' \
  -d '{"input": {"country": "DE", "currency": "EUR"}}'

Verified structured JSON response:

{
  "ok": true,
  "country_record": {
    "alpha2": "DE",
    "alpha3": "DEU",
    "numeric": "276",
    "name": "Germany"
  },
  "currency_record": {
    "code": "EUR",
    "numeric": "978",
    "minor_unit": 2,
    "name": "Euro"
  },
  "billable_usd": "0.005"
}

Strict Input Schema

{
  "type": "object",
  "properties": {
    "country": {
      "type": "string",
      "description": "ISO-3166-1 alpha-2, alpha-3, numeric, or country name."
    },
    "currency": {
      "type": "string",
      "description": "ISO-4217 3-letter currency code or numeric code."
    }
  },
  "additionalProperties": false
}

Frequently Asked Questions

Can I query only country or only currency?

Yes, both fields are optional; if neither yields a match, the call returns $0.00.

Why do payment APIs care about ISO-4217 minor_unit?

Currencies like JPY have 0 minor units while USD/EUR have 2 and BHD/KWD have 3; miscalculating shifts settlement amounts by 10x to 100x.

Related Commerce & Marketing MCP Tools