📊 Rate Limits
The ClosedLoop MCP Server implements rate limiting to ensure fair usage and maintain service quality for all users.Current Limits
| Limit Type | Value | Description |
|---|---|---|
| Requests per minute | 60 | Maximum API calls in a 60-second window |
| Requests per hour | 1,000 | Maximum API calls in a 60-minute window |
| Maximum page size | 100 | Maximum items per page for list operations |
Rate Limit Headers
The server includes rate limit information in response headers:| Header | Description |
|---|---|
X-RateLimit-Limit | Maximum requests allowed in the current window |
X-RateLimit-Remaining | Number of requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp when the rate limit window resets |
Rate Limit Exceeded Response
When you exceed the rate limit, you’ll receive a 429 status code:retry_after field indicates how many seconds you should wait before making another request.
Best Practices
Monitor Rate Limit Usage
Implement Exponential Backoff
Cache Results When Appropriate
Use Pagination Efficiently
Batch Operations When Possible
Rate Limit Monitoring
Track Your Usage
Set Up Alerts
Handling Rate Limit Exceeded
Immediate Response
- Stop making requests immediately
- Check the
retry_aftervalue in the error response - Wait for the specified time before retrying
- Implement backoff for subsequent retries
Long-term Solutions
- Optimize your requests - reduce unnecessary API calls
- Implement caching - store results locally when appropriate
- Batch operations - combine multiple requests when possible
- Monitor usage patterns - identify peak usage times
- Consider upgrading - contact support if you need higher limits
Rate Limit Exceptions
Emergency Access
For critical production issues, you may request temporary rate limit increases:- Contact: support@closedloop.sh
- Include: Your use case and expected request volume
- Response time: Typically within 24 hours
Bulk Operations
For large data exports or bulk operations:- Contact: support@closedloop.sh
- Request: Temporary rate limit increase
- Provide: Estimated request volume and timeline
Related Resources
- Error Handling - Complete error handling guide
- MCP Tools Reference - Detailed tool documentation
- Integration Guide - Setup and configuration