In this section: Quotas and refusals
Quotas and refusals
See the daily MCP quotas and what happens when you reach them.
Four ceilings
Miles checks all four daily ceilings together for each user. A call refused by one ceiling does not spend another.
| Ceiling | Value | Counts |
|---|---|---|
knowledge_search, where_to_credit | 50 calls each | Each of those two tools, counted separately |
| All calls | 500 | Every call, read or write |
| Writes | 100 | Any call to a write tool. Reads keep working when this is spent. |
| Changed rows | 1,000 | Charged by real batch size: a call that changes 50 records charges 50 |
Every ceiling resets at midnight Pacific. The numbers are a guard against a runaway loop, set far above any real session.
What a refusal looks like
A refusal arrives as a tool result with isError: true; the text is a sentence written for a person, and structuredContent.result is a JSON string carrying the same message under a code, so a client can parse it and branch on the code.
{
"isError": true,
"content": [{"type": "text", "text": "You've hit today's limit for changes to your Miles wallet (100 writes). It resets at midnight Pacific. Reading your wallet still works, so you can keep asking questions, just not recording answers until then."}],
"structuredContent": {"result": "{\"error\": {\"code\": \"quota_exceeded\", \"message\": \"You've hit today's limit for changes to your Miles wallet (100 writes). …\", \"docs\": \"https://askmiles.ai/docs/reference/error-codes#quota_exceeded\"}}"}
}Every refusal names the ceiling, the reset in a concrete timezone, and what still works. A batch refusal says how many records it would have changed and how many remain, and confirms nothing was written.
Three refusals that look alike
| Code | Means | Resets | Fix |
|---|---|---|---|
quota_exceeded | A daily ceiling is spent | Midnight Pacific | Wait, or send a smaller batch |
write_scope | The token lacks miles:write, or miles:write:reconcile for a reconciliation tool | Never on its own | The user reconnects with the matching toggle checked |
supporter_required | The tool needs the user to be a Member | Never | The user joins Membership; the code keeps its historical spelling |
A client that treats all three as "try again later" will loop on the second and third forever. Branch on the code. Every code a refusal can carry, here and on the tools themselves, is listed with its fix on the Error codes reference, and a coded refusal carries the link to its own anchor in its docs field.
The advisory before the refusal
Past 80% of any ceiling, a successful result carries an advisory string alongside its data: 410 of today's 500 Miles calls used. It resets at midnight Pacific. Surface the advisory because it is Miles' only channel into a client's UI before a refusal.
Other limits
Daily ceilings cap total usage per user each day. Burst size, oversized requests, and concurrency are outside their scope. The registration, token and revocation endpoints share a separate limit of 20 requests per minute per IP.
MCP tool calls do not run inference today. The x-miles-budget-* headers documented on the Chat API's rate limits page do not apply to them.