emissions_calculate
Calculate CO2e for one activity from a published factor. $0.005 per call — USDC on Solana via x402 (over MCP: call without payment to get the PaymentRequired challenge, then retry with the payment at _meta["x402/payment"]). HTTP equivalent: POST https://exchangerebel.com/toll/emissions/calculate.
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": {
"factor_id": "<factor_id>",
"quantity": "<quantity>"
},
"name": "emissions_calculate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | integer - optional activity year selecting the factor vintage; omitted = latest vintage, disclosed in the answer | |
| quantity | Yes | number (required) - activity quantity in the factor's unit (must be > 0) | |
| factor_id | Yes | string (required) - factor id from GET /toll/emissions/factors (base id or full record id incl. vintage) |