Applies to:
- Plan - Starter, Pro, Enterprise
- Deployment - Any
- Use case - BTQL queries with frequent or resource-intensive query patterns
Summary
BTQL queries through the MCP server or API hit rate limits of 20 requests per minute, causing HTTP 429 errors that block productivity.Resolution Steps
If you’re a SaaS or BYOC customer
Step 1: Contact support
Contact us to discuss options for your usage patterns and requirements.Step 2: Optimize queries while waiting
Reduce query frequency by caching results, batching requests, or adding time delays between queries.Additional Information
Rate limit behavior
Rate limits apply per organization, and additionally per project, and track queries over a fixed time window. Queries from the API, SDKs, and MCP server count toward these limits. Queries issued from the Braintrust UI are exempt. When a function such as a code scorer or tool runs a query that exceeds a rate limit, invoking the function returns HTTP 429 instead of HTTP 500. If the rate limit error reports a retry delay, the response also includes aRetry-After header with the number of seconds to wait. When all remaining failures in a batch are transient, online scoring honors the delay only if the retry fits within the retry window.