metering__create_meter
Set up a usage meter between provider and consumer agents, defining the unit of measure and cost per unit in minor currency units.
Instructions
[metering — usage metering + SLA accounting (x402 meter)] Create a usage meter between a provider and a consumer agent.
unit: what is being counted (call, token, kwh, ...). Price is in minor
currency units (cents) per unit. Returns the meter_id.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": {
"provider": "<provider>",
"consumer": "<consumer>",
"unit": "<unit>",
"price_minor_per_unit": "<price_minor_per_unit>"
},
"name": "metering__create_meter"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | ||
| consumer | Yes | ||
| currency | No | USD | |
| provider | Yes | ||
| sla_target | No | ||
| price_minor_per_unit | Yes |