rate_limit_check
Determine if an operation exceeds rate limits by specifying a resource, maximum requests, and time window. Optionally increment the counter to track usage and ensure compliance.
Instructions
Check if an operation should be rate-limited
Input Schema
Name | Required | Description | Default |
---|---|---|---|
increment | No | Increment the counter if allowed | |
max_requests | No | Maximum requests allowed | |
resource | Yes | Resource identifier (e.g., 'api.github.com') | |
window_seconds | No | Time window in seconds |