quota-reservation-check
Would this request fit in the remaining quota, given a snapshot and pending reservations? (snapshot-bound) — Computes available quota from a caller-supplied snapshot (limit, used, reserved) minus the unexpired pending reservations and says whether a requested amount fits. This is a read of the numbers you supply as of snapshotAt: it reserves nothing, so concurrent consumers can still use the quota before you do, and every response says so. A stale snapshot gives unknown, not pass; a window that ended at
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": {
"quota": "<quota>",
"request": "<request>",
"snapshotAt": "<snapshotAt>",
"asOf": "<asOf>"
},
"name": "quota-reservation-check"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | Yes | RFC 3339 instant of the decision (no clock is read). | |
| quota | Yes | ||
| pending | No | ||
| request | Yes | ||
| snapshotAt | Yes | RFC 3339 instant the quota numbers were read. | |
| maxSnapshotAgeSeconds | No |