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

Critical Raw Minerals & ESG Compliance Oracle(x402)

verify_composite_battery_passport

Read-onlyIdempotent

Verifies end-to-end composite EV battery pack compliance and issues a signed Master Passport on Polygon, covering lithium, nickel, cobalt, IRA FEOC and EU 2023/1542 audits.

Instructions

Evaluates end-to-end composite EV battery pack compliance and issues a Master Passport on Polygon (Lithium + Nickel + Cobalt, US IRA 50% FTA value ratio, zero FEOC taint, EU 2023/1542 carbon footprint, Merkle Root EIP-712 signature). 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": {
      "battery_pack_id": "<battery_pack_id>",
      "lithium_lot": "<lithium_lot>",
      "nickel_lot": "<nickel_lot>",
      "cobalt_lot": "<cobalt_lot>"
    },
    "name": "verify_composite_battery_passport"
  }
}

Input Schema

NameRequiredDescriptionDefault
cobalt_lotYesStructured cobalt hydroxide lot provenance object (trace_id, origin_country, coordinates, CEEC seal/mass balance, FEOC equity %).
nickel_lotYesStructured nickel MHP lot provenance object (trace_id, origin_country, coordinates, SIMBARA/mass balance, FEOC equity %).
lithium_lotYesStructured lithium lot provenance object (trace_id, origin_country, coordinates, mass balance, FEOC equity %).
cell_chemistryNoStandard automotive battery cell architecture (IEC 62660 / ISO 12405 / SAE J2990)NCM811
battery_pack_idYesUnique EV battery pack identifier or DIN/GS1 serial number (e.g. 'BP-NCM811-2026-0001').
pack_capacity_kwhNoTotal nominal energy capacity of the EV battery pack in kilowatt-hours (kWh, e.g. 82.5).

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed6 schema fields changedv1.0.11
    • addedInput schema / additionalProperties
      Added value: +false
    • changedInput schema / properties / battery_pack_id / description
      Previous value: -"Unique battery pack serial (e.g. BATT-NCM811-2026-PACK01)"New value: +"Unique EV battery pack identifier or DIN/GS1 serial number (e.g. 'BP-NCM811-2026-0001')."
    • changedInput schema / properties / cobalt_lot / description
      Previous value: -"CobaltOriginVerifyRequest payload"New value: +"Structured cobalt hydroxide lot provenance object (trace_id, origin_country, coordinates, CEEC seal/mass balance, FEOC equity %)."
    • changedInput schema / properties / lithium_lot / description
      Previous value: -"LithiumOriginVerifyRequest payload"New value: +"Structured lithium lot provenance object (trace_id, origin_country, coordinates, mass balance, FEOC equity %)."
    • changedInput schema / properties / nickel_lot / description
      Previous value: -"NickelOriginVerifyRequest payload"New value: +"Structured nickel MHP lot provenance object (trace_id, origin_country, coordinates, SIMBARA/mass balance, FEOC equity %)."
    • changedInput schema / properties / pack_capacity_kwh / description
      Previous value: -"Pack capacity in kWh"New value: +"Total nominal energy capacity of the EV battery pack in kilowatt-hours (kWh, e.g. 82.5)."
  2. Changed2 schema fields changedv1.0.10
    • changedInput schema / properties / cell_chemistry / description
      Previous value: -"Cathode chemistry (NCM811, NCM622, NCM523)"New value: +"Standard automotive battery cell architecture (IEC 62660 / ISO 12405 / SAE J2990)"
    • addedInput schema / properties / cell_chemistry / enum
      Added value: +[
      +  "NCM811",
      +  "NCM9",
      +  "NCA",
      +  "NCMA",
      +  "LFP",
      +  "SOLID_STATE"
      +]
  3. Addedv1.0.5

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, so the description's added value is the payment model (x402 USDC on Polygon/Base/Arbitrum/Solana or Pre-Funded Agent Vault key), the one-free-proof limit, and the on-chain issuance plus structured JSON verdict with audit metadata and cryptographic reference. These are real behaviors an agent must plan around that the annotations do not convey. The tension between 'issues a Master Passport' and readOnlyHint is worth noting but is best read as emitting an attestation, not mutating caller-owned state, so it is not a contradiction.

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?

It is compact and front-loaded: the action and scope come first, then the regulatory checks, then the return shape, then the payment gate. The heavy parenthetical stacking ('Lithium + Nickel + Cobalt, US IRA 50% FTA value ratio, zero FEOC taint, EU 2023/1542...') is dense but every clause carries distinct information, so waste is minimal.

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 complex six-parameter verification tool with no output schema, the description still covers the return contract (JSON verdict, audit metadata, cryptographic reference) and the commercial precondition. Nested lot object structure is left to a fully documented schema, which is reasonable. It stops short of explaining verdict semantics (e.g. what constitutes a failure or how FEOC taint is evaluated), which is the main residual 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% and each of the six parameters, including the three nested lot objects, is documented in-schema (trace_id, origin_country, coordinates, mass balance, FEOC equity %). The description adds no parameter-level meaning beyond that, so the baseline 3 applies; it also does not clarify which lot fields are mandatory for a pass/fail verdict.

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 uses a specific verb ('Evaluates') plus a well-defined resource ('end-to-end composite EV battery pack compliance') and states the concrete artifact produced ('Master Passport on Polygon'). It is distinguishable from the single-mineral siblings such as verify_cobalt_origin or verify_lithium_origin by the 'end-to-end composite' scope, though it never names those siblings as the narrower alternative.

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 context is implied rather than stated: an agent can infer this is the pack-level aggregate verification (Li + Ni + Co plus IRA/FEOC/EU rules) versus the per-mineral lot tools, but the description never says 'use this instead of X when Y'. The only explicit guidance is commercial (payment required after one free One-Shot Proof), which addresses billing, not tool selection.

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