cycles_reserve
Reserve budget before costly operations like LLM calls or tool invocations. Get a reservation ID to commit or release later.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttlMs | No | ||
| action | Yes | ||
| dryRun | No | ||
| subject | Yes | ||
| estimate | Yes | ||
| metadata | No | ||
| gracePeriodMs | No | ||
| overagePolicy | No | ||
| idempotencyKey | Yes |