rate_limit_limiter_acquire
Atomically check and consume a rate limit token for a named resource. Returns whether the action is allowed, preventing overconsumption and ensuring controlled access.
Instructions
[rate_limit] Atomically check AND consume — the most common operation. If allowed, consumes a token and returns {allowed: true, ...}. If denied, returns {allowed: false, ...} without consuming.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| cost | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |