Calculate GHG inventory
calculate_inventoryCalculate an auditable GHG inventory from explicit activity records. Returns per-line gas/CO2e results, Scope 1/2/3 and category rollups, dual Scope 2 reporting, indeterminate lines, factor lineage, notary payload, and an offset-clearinghouse dry-run weave. This is calculation, not advice. Price: $1.00 per call after 10 free calls/day. Pay at /x402/ghg-ledger/calculate_inventory with Base USDC, cash-fund payment_ref through escrow_checkout + confirm_escrow_funding, or use /seats. Each activity needs activity_type, quantity, unit, region and year (the year the activity took place; the latest bundled factor dated on or before it is used and recorded on the line). list_factor_packs names the bundled activity types and regions. One activity object is accepted as a list of one. If a call returns indeterminate, the response includes first_call_help. Example arguments: {"activities": [{"id": "office-electricity", "activity_type": "purchased_electricity", "quantity": "12000", "unit": "kWh", "region": "US", "year": 2023}, {"id": "backup-generator", "activity_type": "stationary_combustion_diesel", "quantity": "400", "unit": "gallons", "region": "US", "year": 2025}], "options": {}}
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_inventory"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| options | No | Optional. Settings, for example factor_year_policy or offset_buyer. | |
| activities | No | The activities to inventory: a list of {activity_type, quantity, unit, region, year}. One object or a JSON string is also accepted. | |
| request_id | No | Optional. Your id for this call. Repeat it to retry safely: the same request_id is never charged twice. | |
| payment_ref | No | Optional. A paid credit or payment reference, used only after the free daily calls. Leave it out to use the free tier or a seat. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |