Skip to main content
Glama

Compute Ledger

Carbon receipt

carbon_receipt

Emit an x402-C carbon receipt for a recorded work entry — the physically-grounded {version, g_co2e, energy_j, method, landauer_*, ...} object an x402 machine-payment receipt can carry. method is 'landauer-floor' when the workload declared bit_ops (thermodynamically validated), else 'measured'. Pass offset_ref (a retirement id from the offset clearinghouse) to assert carbon-neutrality. Read-only; the returned attestation_hash binds the receipt to the ledger's hash chain.

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": {
      "entry_id": "<entry_id>"
    },
    "name": "carbon_receipt"
  }
}

Input Schema

NameRequiredDescriptionDefault
entry_idYesYour id for this work entry; recording it again is idempotent.
offset_refNoOptional. A clearinghouse purchase_id whose retirement covers this entry.

Output Schema

NameRequiredDescriptionDefault
resultYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed1 schema field changed
    • addedInput schema / additionalProperties
      Added value: +false
  2. Changed2 schema fields changed
    • addedInput schema / properties / entry_id / description
      Added value: +"Your id for this work entry; recording it again is idempotent."
    • addedInput schema / properties / offset_ref / description
      Added value: +"Optional. A clearinghouse purchase_id whose retirement covers this entry."
  3. Added

TDQS

B3/5.0
Behavior1/5

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

The description asserts 'Read-only', but annotations declare readOnlyHint=false, so the text directly contradicts the structured safety profile on the single most consequential property. It also never clarifies what side effect 'Emit' has — whether a receipt is appended to the ledger hash chain — leaving the mutation profile genuinely ambiguous.

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

Conciseness4/5

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

Four sentences, front-loaded with the action and resource, then the method rule, then the offset_ref behavior, then the attestation hash binding. Dense jargon and the parenthetical field list cost some readability, but no sentence is filler.

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

Completeness2/5

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

An output schema exists, yet the description still spends a clause enumerating return fields while omitting what an agent most needs: whether this call writes or merely reads, what it changes in the ledger, and what offset_ref does to the result beyond 'assert'. Given a tool whose name and annotations point to a mutation, the missing side-effect account is a substantive gap.

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?

Schema coverage is 100%, so the baseline is 3, but the description adds real meaning: offset_ref is identified as a retirement id from the offset clearinghouse whose presence asserts carbon-neutrality, explaining the effect rather than just the format. It also explains how the receipt's method field is derived (landauer-floor vs measured), which contextualizes the output even though method is not an input parameter.

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

Purpose4/5

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

Names a specific verb and resource: 'Emit an x402-C carbon receipt for a recorded work entry', and enumerates the returned object's fields (g_co2e, energy_j, method, landauer_*). The concept is precise but jargon-dense, and it never distinguishes itself from siblings like attest, footprint, or intelligence_bound, leaving an agent to infer the boundary.

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

Usage Guidelines3/5

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

Usage is implied by 'for a recorded work entry' and the note that offset_ref asserts carbon-neutrality, so an agent can infer this runs after record_work. However, there is no explicit when-to-use versus attest or verify_attestation, and no statement of preconditions such as the entry needing to exist first.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.