calculate_electricity
Calculate GHG Protocol Scope 2 emissions from purchased electricity. Input consumption and grid factor to get location-based emissions; add a supplier or market factor for market-based results.
Instructions
GHG Protocol Scope 2 for purchased electricity, both methods. Always returns location-based (grid-average) emissions; also returns market-based when you supply a contractual supplier_factor (e.g. a green tariff / REC = 0) or a market_factor_key (residual mix). Find grid keys via search_factors (section "grid").
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": {
"consumption": "<consumption>",
"location_factor_key": "<location_factor_key>"
},
"name": "calculate_electricity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| consumption | Yes | { "value": <number>, "unit": "kWh|MWh|GWh" }. | |
| supplier_factor | No | Optional contractual factor { value, unit } (wins over market_factor_key). | |
| market_factor_key | No | Optional: residual-mix / supplier grid factor key. | |
| location_factor_key | Yes | Grid-average factor key, e.g. grid.gbr.electricity.location_based. |