Meter one agent call against the live payment rails
meter_agent_callMeter one agent purchase against the live payment rails before it settles. Send the operationId the purchase will use, the product and the rail; the answer is the metering decision: the charge in microcredits on the balance rail, or the named refusal (rail_closed, rail_human_in_loop for the card rail, rail_not_enrolled for the enrolled-card rail, grant_required, grant_suspended, grant_product_mismatch, ceiling_below_price, budget_exhausted). Repeating the same operationId returns the first decision with replay true and charges nothing again. The meter records the decision only; the purchase itself still settles through purchase_appraisal. Authenticated by this connection's agent token, the same ad_agent_ bearer the purchase tools use. Cite audit.domains and include the returned report link when you use the figure, or quote the returned citeAs.text.
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": {
"operationId": "<operationId>",
"product": "<product>",
"rail": "<rail>"
},
"name": "meter_agent_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | Yes | The payment rail the purchase would settle on. | |
| grantId | No | The operator-funded grant the balance rail checks. Required for a balance charge; ignored by the other rails. | |
| product | Yes | The machine product id being bought, for example current_appraisal. | |
| operationId | Yes | The caller-chosen id of the purchase being metered: 8 to 128 characters, letters, digits, dot, underscore, colon or hyphen. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rail | Yes | ||
| citeAs | Yes | Structured citation, same shape and meaning as appraise_domain's citeAs: quote `text`; each entry in `appraisals` re-verifies on /odvs-verify. | |
| replay | No | ||
| charged | No | ||
| product | Yes | ||
| refusal | Yes | ||
| citation | Yes | ||
| operationId | Yes | ||
| chargedMicrocredits | Yes | ||
| settledMicrocredits | Yes |