Skip to main content
Glama

compute-ledger__record_work

Record agent compute work, calculate energy and carbon emissions from power and duration. Optionally validate against the Landauer limit using bit operations 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
Behavior5/5

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

The description transparently explains the internal calculations (energy_j = power_w * duration_s; carbon_g from grid intensity), validation against Landauer limit if bit_ops provided, and idempotency on entry_id. No annotations exist, so the description bears full burden and does so well.

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 concise (4 sentences) and well-structured: purpose first, then formulas, then validation rule, then idempotency. No wasted words.

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 complexity (9 params, no output schema), the description covers the core function and key behaviors. It could be more complete by explaining all parameters and return values, but it suffices for a recording tool with no output schema needed.

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?

With 0% schema description coverage, the description compensates by explaining the roles of key parameters: power_w, duration_s, grid_intensity_g_per_kwh, bit_ops, and entry_id. However, it does not explicate all 9 parameters (e.g., temperature_k, price_minor_per_kwh), so some gap remains.

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 purpose: 'Record a unit of agent compute work.' It uses specific verbs and resources, and distinguishes from sibling tools like compute-ledger__footprint or compute-ledger__list_entries.

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

Usage Guidelines2/5

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

No explicit guidance on when or when not to use this tool compared to alternatives. Usage context is only implied by the tool name and the sibling list, but no direct comparison or prerequisites mentioned.

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