Cycles — Budget Authority for AI Agents
v0.6.1Runtime budget authority for AI agents — reserve, enforce, reconcile spend across providers
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
cycles_reserve Reserve Budget
Reserve budget before a costly operation (LLM call, tool invocation, external action). Returns a reservation_id to commit or release later. If decision is not ALLOW, do not proceed with the operation. For lightweight preflight checks without reserving, use cycles_decide instead.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
estimate * | object | |
idempotencyKey * | string | |
dryRun | boolean | |
gracePeriodMs | integer | |
metadata | object | |
overagePolicy | string | |
subject | object | |
ttlMs | integer |
cycles_commit Commit Usage
Commit actual usage after an operation completes. Always call this after cycles_reserve whether the operation succeeded or failed. Finalizes the budget charge and releases any unused reserved amount back to the pool.
| Parameter | Type | Description |
|---|---|---|
actual * | object | |
idempotencyKey * | string | |
reservationId * | string | |
metadata | object | |
metrics | object |
cycles_release Release Reservation
Release a reservation without committing. Use when an operation is cancelled, skipped, or fails before execution. Returns the released budget amount back to the pool.
| Parameter | Type | Description |
|---|---|---|
idempotencyKey * | string | |
reservationId * | string | |
reason | string |
cycles_extend Extend Reservation TTL
Extend the TTL of an active reservation. Use as a heartbeat for long-running operations to prevent the reservation from expiring. Does not change the reserved amount.
| Parameter | Type | Description |
|---|---|---|
extendByMs * | integer | |
idempotencyKey * | string | |
reservationId * | string | |
metadata | object |
cycles_decide Preflight Budget Check
Lightweight preflight check — ask whether an action would be allowed without reserving budget. Does not create a reservation. Use at workflow start to decide strategy. For concurrency-safe budget locking, use cycles_reserve instead.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
estimate * | object | |
idempotencyKey * | string | |
metadata | object | |
subject | object |
cycles_check_balance Check Budget Balance
Check current budget balance for a scope. Returns remaining, reserved, spent, allocated, and debt amounts. At least one subject filter (tenant, workspace, app, workflow, agent, or toolset) is required. Do not use as a substitute for cycles_reserve — balances can change between check and action.
| Parameter | Type | Description |
|---|---|---|
agent | string | |
app | string | |
cursor | string | |
includeChildren | boolean | |
limit | integer | |
tenant | string | |
toolset | string | |
workflow | string | |
workspace | string |
cycles_list_reservations List Reservations
List reservations, optionally filtered by status (ACTIVE, COMMITTED, RELEASED, EXPIRED) or subject fields. Useful for debugging stuck reservations or auditing budget usage.
| Parameter | Type | Description |
|---|---|---|
agent | string | |
app | string | |
cursor | string | |
idempotencyKey | string | |
limit | integer | |
status | string | |
tenant | string | |
toolset | string | |
workflow | string | |
workspace | string |
cycles_get_reservation Get Reservation Details
Get details of a specific reservation by ID. Returns status, subject, action, reserved amount, timestamps, and affected scopes. Useful for debugging and monitoring long-running operations.
| Parameter | Type | Description |
|---|---|---|
reservationId * | string |
cycles_create_event Record Usage Event
Record a usage event directly without the reserve/commit lifecycle. Use for fire-and-forget metering of completed operations where pre-estimation is not available. The event is applied atomically to all derived scopes.
| Parameter | Type | Description |
|---|---|---|
action * | object | |
actual * | object | |
idempotencyKey * | string | |
clientTimeMs | integer | |
metadata | object | |
metrics | object | |
overagePolicy | string | |
subject | object |