Xpenvo Agents

v0.1.0
com.xpenvo/agents Checked 2 days ago Published 7 days ago

See what an AI agent's budget has left, and check and record tool spending against hard limits.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

xpenvo_status Budget left

How much this agent can still spend: whether it may spend now, dollars left on each budget, and for a run what it has spent. Free; changes nothing. Check it before starting expensive work.

ParameterTypeDescription
runstringYour own id for this agent run, to apply per-run limits. Never personal data.

xpenvo_charge Charge tool spending

Before paying for something that is not a model call (a search API, scraping, a paid tool), check its known cost against the budget and charge it. If refused, do not make the paid call.

ParameterTypeDescription
label *stringShort name of the tool or service, e.g. "serpapi". Letters, digits and _ . : / - only.
usd *numberThe cost in US dollars
customerstringYour own id for the end customer, to apply per-customer limits. Never an email address.
runstringYour own id for this agent run, to apply per-run limits. Never personal data.

xpenvo_hold Hold tool spending

When the cost is not known in advance, hold the most it could cost before the paid call. Afterwards call xpenvo_settle with the real cost, or xpenvo_release if it did not happen. A hold never closed is charged in full when it expires.

ParameterTypeDescription
label *stringShort name of the tool or service
maxUsd *numberThe most it could cost, in US dollars
customerstringYour own id for the end customer, to apply per-customer limits. Never an email address.
runstringYour own id for this agent run, to apply per-run limits. Never personal data.
ttlMinutesintegerHow long to hold it (default 15)

xpenvo_settle Settle a hold

Charge the real cost of a hold made with xpenvo_hold and free the rest.

ParameterTypeDescription
id *stringThe hold id (req_...)
usd *numberThe real cost in US dollars

xpenvo_release Release a hold

Free a hold made with xpenvo_hold when the paid call did not happen.

ParameterTypeDescription
id *stringThe hold id (req_...)