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

Critical Raw Minerals & ESG Compliance Oracle(x402)

verify_rare_earths_origin

Read-onlyIdempotent

Verify rare earth provenance and export-control compliance by validating extraction coordinates, radiation levels, oxide purity, and China-origin content for a batch before approval.

Instructions

Verifies Rare Earth Elements (NdPr / Dy / Tb) provenance, Non-China GIS geofencing, IAEA radiation safety, and China MOFCOM Notice 61 '0.1% extraterritorial export control' compliance. 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": {
      "batch_id": "<batch_id>",
      "tenement_id": "<tenement_id>",
      "latitude": "<latitude>",
      "longitude": "<longitude>",
      "ndpr_oxide_purity_pct": "<ndpr_oxide_purity_pct>",
      "thorium_uranium_radiation_ppm": "<thorium_uranium_radiation_ppm>",
      "declared_china_origin_ratio": "<declared_china_origin_ratio>",
      "source_country": "<source_country>"
    },
    "name": "verify_rare_earths_origin"
  }
}

Input Schema

NameRequiredDescriptionDefault
batch_idYesUnique batch/lot identifier
latitudeYesExtraction point latitude
longitudeYesExtraction point longitude
tenement_idYesConcession identifier (MT_WELD, MOUNTAIN_PASS, NECHALACHO, LONGONJO, DONG_PAO, BARDY_SE)
source_countryYesOrigin country code (AUS, USA, CAN, AGO, VNM)
ndpr_oxide_purity_pctYesNdPr Oxide assay purity % (>= 99.50%)
declared_china_origin_ratioYesChina origin content ratio (< 0.001 for 0.1% MOFCOM compliance)
thorium_uranium_radiation_ppmYesThorium + Uranium radiation byproduct ppm (<= 500 ppm)

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed9 schema fields changedv1.0.11
    • addedInput schema / additionalProperties
      Added value: +false
    • addedInput schema / properties / latitude / maximum
      Added value: +90
    • addedInput schema / properties / latitude / minimum
      Added value: +-90
    • addedInput schema / properties / longitude / maximum
      Added value: +180
    • addedInput schema / properties / longitude / minimum
      Added value: +-180
    • addedInput schema / properties / ndpr_oxide_purity_pct / maximum
      Added value: +100
    • addedInput schema / properties / ndpr_oxide_purity_pct / minimum
      Added value: +0
    • changedInput schema / properties / source_country / description
      Previous value: -"Origin country code (AUS, USA, CAN, AGO)"New value: +"Origin country code (AUS, USA, CAN, AGO, VNM)"
    • changedInput schema / properties / tenement_id / description
      Previous value: -"Concession identifier (MT_WELD, MOUNTAIN_PASS, NECHALACHO, LONGONJO)"New value: +"Concession identifier (MT_WELD, MOUNTAIN_PASS, NECHALACHO, LONGONJO, DONG_PAO, BARDY_SE)"
  2. Addedv1.0.7

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open-world, so the safety profile is covered. The description goes beyond that with genuinely non-obvious behavior: it discloses the payment/authentication model and the shape of the response (structured JSON verdict, audit metadata, cryptographic reference). It stops short of describing what a failing verdict looks like or any rate limits / retry semantics.

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 core operation before payment details, with zero filler. The first sentence is a dense pile of regulatory acronyms and could be better split into bullets or clauses for scanning, which is the only structural weakness.

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 domain-complex, no-output-schema, all-required 8-parameter verifier, the definition covers what is checked, the payment gate, and the broad response contents. Gaps are the enumeration of possible verdict outcomes, error behavior when thresholds fail, and whether a failed verification is billable — all meaningful for an agent deciding whether to spend a paid call.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters5/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% and every one of the 8 required parameters carries its own description including thresholds (>= 99.50% purity, < 0.001 China ratio, <= 500 ppm Th+U) and the tenement/country code sets. The description adds no parameter detail beyond this, but under the stated rule a fully covered schema sets the baseline at 3 and nothing here misleads or subtracts; the parameter naming plus regulatory framing is consistent and complete.

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?

Opens with a specific verb plus resource ('Verifies Rare Earth Elements (NdPr / Dy / Tb) provenance') and enumerates the exact compliance domains checked (GIS geofencing, IAEA radiation safety, MOFCOM Notice 61). The named mineral set clearly separates it from siblings such as verify_cobalt_origin or verify_lithium_origin without needing to inspect those schemas.

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?

States clear preconditions for invocation: x402 USDC payment on four chains or a Pre-Funded Agent Vault key, with one free One-Shot Proof. What is missing is any explicit when-not or routing statement (e.g., which sibling to use for a mixed/composite lot, or that non-rare-earth minerals belong to other verifiers), so the agent must infer the boundary from the mineral names.

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