calculate_activity
Calculate emissions from activity data by applying emission factors. Automatically converts units and provides scope, source, and calculation steps.
Instructions
Turn activity data into greenhouse-gas emissions: emissions = activity × factor. Give an amount + unit and a factor key; the unit engine converts to the factor basis (MWh→kWh, tonne→kg, gallon→litre, mile→km) and returns the emissions with the working, the GHG Protocol scope, and the source. Use search_factors / lookup_factor to find the factor key.
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": {
"activity": "<activity>",
"factor_key": "<factor_key>"
},
"name": "calculate_activity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| activity | Yes | { "value": <number>, "unit": "<unit e.g. kWh, MWh, litres, tonne, km>" }. | |
| factor_key | Yes | Canonical emission-factor key. |