rate_limit_check
Determine if an operation exceeds rate limits by checking resource usage against defined thresholds. Configure max requests, time window, and auto-increment options to manage access control.
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 |