Skip to main content
Glama

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.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
taskNo
bit_opsNo
power_wYes
agent_idYes
entry_idYes
duration_sYes
temperature_kNo
price_minor_per_kwhNo
grid_intensity_g_per_kwhNo
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It discloses energy/carbon calculation, Landauer floor validation, rejection of physically impossible claims, and idempotency. This is transparent, though it could mention error handling or side effects more explicitly.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, dense paragraph of four sentences with no unnecessary words. It conveys essential information efficiently.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's complexity (9 parameters, physics validation, no output schema), the description covers the main behavioral aspects and parameter relationships. However, it could include more detail on return value or error scenarios.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The description explains key parameters (power_w, duration_s, bit_ops, grid_intensity_g_per_kwh) with formulas and validation logic, compensating for the 0% schema description coverage. However, it does not cover all 9 parameters (e.g., task, temperature_k, price_minor_per_kwh), leaving some ambiguity.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool records a unit of agent compute work, provides the calculation formula, and mentions validation against Landauer floor. It distinguishes from sibling tools by specifying the context (compute-is-carbon ledger) and the specific action (recording work).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies when to use the tool (to record agent compute work) and includes details like idempotency on entry_id and validation of physical bounds. However, it does not explicitly contrast with alternative tools like compute-ledger__footprint or attest, but the unique purpose is clear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/jdhart81/viridis-agent-fleet'

If you have feedback or need assistance with the MCP directory API, please join our Discord server