Record work
record_workRecord 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": "record_work"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task | No | Optional. A short label for the work. | |
| bit_ops | No | Optional. Irreversible bit operations performed; when given, the entry is checked against the Landauer floor. | |
| power_w | Yes | Average power draw in watts. | |
| agent_id | Yes | Id of the agent whose compute or inventory is recorded or read. | |
| entry_id | Yes | Your id for this work entry; recording it again is idempotent. | |
| duration_s | Yes | How long the work ran, in seconds. | |
| temperature_k | No | Operating temperature in kelvin. Default 300. | |
| price_minor_per_kwh | No | Optional. Electricity price in minor units per kWh, for cost. | |
| grid_intensity_g_per_kwh | No | Grid carbon intensity in grams CO2e per kWh. Default 400. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |