Fitaily MCP
Errors & limits
The MCP server never forwards the backend response body to the model. Errors are normalized to a short message and the backend body is never passed through.
HTTP status codes#
| Code | Meaning | What to do |
|---|---|---|
401 | Missing/invalid token or unauthorized backend. | Sign in again through OAuth. |
403 | Missing scope or token audience mismatch. | Choose a broader scope at sign-in. |
405 | GET on /mcp — only POST is allowed. | Use an MCP client with Streamable HTTP. |
413 | Request body too large (default > 1 MB). | Reduce the request payload. |
429 | Rate limit exceeded (IP or user). | Slow down; the per-user limit is 300/min. |
500 / 502 | MCP server error or unreachable backend. | Try again later. |
Limits#
- Default request limit: 10,000/min per IP; 300/min per authenticated user.
- Max request body: 1 MB (MCP_BODY_LIMIT).
- get_forecast: 10 requests/min, results cached for 6h.
- List tools accept a limit and default to a small page — paginate instead of asking for hundreds of rows.
When data is missing
If a tool returns an empty list or null, do not invent values. Tell the user the data is missing and offer to add it (e.g. add_meal, add_measurement).