Skip to main content
Glama

Offer to pay a packet in a VSH ecocredit on Regen (step 1 of 2)

prepare_credit_offer
Read-onlyIdempotent

Before the work: offer to pay this packet in verified stewardship hour (VSH) ecocredits from a named batch on Regen Ledger (chain regen-1). FREE, a signed offer, no fee, no gas, NO credit moves and none is held. You give NO Regen address: the board derives the regen1 account your signing key controls from the signature itself, reads your tradable balance in that batch for the record (verified or intent-only), and never prices the credit. amount is in the credit's own units with at most 6 decimal places, so 1.5 means one and a half verified hours. One offer per wallet per packet; offering again replaces it. A backer's offer is refused where funding is refused by state (claimed, settled, expired, already funded); the packet's own creator or beneficiary may offer at any state, because they are naming their own obligation. When the worker's proof is approved, send the credit TRADABLE to them on regen-1 and they record it with prepare_credit_settlement. Returns MESSAGE_TO_SIGN and BODY_JSON; sign with the backer wallet's personal_sign, then call submit_credit_offer within 5 minutes. Cost and signer: free, no gas; the person signs the result with their own wallet or passkey, and the house never holds a key.

Input Schema

NameRequiredDescriptionDefault
amountYesPositive decimal in the credit's own units, at most 6 decimal places, e.g. "1.5".
reasonNoOptional, up to 280 characters: why this packet.
workIdYesThe packet id, from find_work.
backerKindNoSelf-declared attribution. Defaults to agent if omitted.
batchDenomYesThe Regen credit batch denom you will pay from, e.g. VSH01-001-20260907-20270907-001.
backerWalletYesThe 0x… address that will sign and later pay. Address only, never a key.

Output Schema

NameRequiredDescriptionDefault
okNo
toolNo
fundedNo
payUsdNo
workIdNo
claimIdNo
claimableNo
next_callNo
proofRuleNo
fulfillableByNo
definitionOfDoneNo
needs_from_callerNo
notClaimableReasonNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4.3/5.0
Behavior5/5

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

Goes well beyond the annotations: no fee, no gas, no credit moves or is held, no Regen address supplied (board derives the regen1 account from the signature), never prices the credit, one offer per wallet per packet with replacement semantics, a 5-minute signing window, and 'the house never holds a key'. These are exactly the behavioral facts an agent needs and are consistent with readOnlyHint=true.

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

Conciseness3/5

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

Front-loaded with the key framing ('Before the work') and dense with substance, but it is a single long block with real redundancy: cost/free/no-gas is stated twice, and signing is described twice ('personal_sign' vs 'signs the result with their own wallet or passkey'). Trimming the repeats would make it noticeably sharper.

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

Completeness5/5

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

For a two-step prepare tool this covers everything an agent needs: what is produced (MESSAGE_TO_SIGN and BODY_JSON), how to sign it, the 5-minute deadline, the submit_credit_offer handoff, the later settlement path, replacement semantics, and the exact state-based refusal rules. With an output schema present, return-value detail is correctly left out.

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

Parameters3/5

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

Schema description coverage is 100%, so all six parameters are already documented. The description mostly restates the amount rule (own units, ≤6 decimals) that the schema already gives, adding only the interpretive gloss '1.5 means one and a half verified hours' and the note that no Regen address is needed. Useful but marginal over the schema — baseline 3.

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?

Specific verb + resource: prepare a signed offer to pay a work packet in VSH ecocredits from a named Regen batch on chain regen-1. The title and opening line make clear it is 'step 1 of 2' (prepare, not submit), distinguishing it from submit_credit_offer and from the sibling prepare_token_offer / prepare_direct_offer / prepare_backing paths.

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?

States the timing ('Before the work'), the required follow-up ('sign with the backer wallet's personal_sign, then call submit_credit_offer within 5 minutes'), and the precise when-refused conditions (claimed, settled, expired, already funded) plus the creator/beneficiary exception. It does not explicitly route to alternative offer tools for other asset types, which keeps it short of a 5.

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.

Resources