compute-ledger__record_work
Record agent compute work to an energy/carbon ledger. Calculate energy from power and duration, determine carbon emissions from grid intensity, and optionally validate against the Landauer limit to reject physically impossible claims.
Instructions
[compute-ledger — compute-is-carbon energy/carbon ledger] Record a unit of agent compute work. energy_j = power_w * duration_s; carbon_g follows from grid intensity. If bit_ops is declared, the entry is validated against the Landauer floor (bit_ops * kB * T * ln2) — physically impossible claims are rejected. Idempotent on entry_id.
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": {
"agent_id": "<agent_id>",
"entry_id": "<entry_id>",
"power_w": "<power_w>",
"duration_s": "<duration_s>"
},
"name": "compute-ledger__record_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | ||
| bit_ops | No | ||
| power_w | Yes | ||
| agent_id | Yes | ||
| entry_id | Yes | ||
| duration_s | Yes | ||
| temperature_k | No | ||
| price_minor_per_kwh | No | ||
| grid_intensity_g_per_kwh | No |