Error response format
All errors follow the JSON-RPC 2.0 error format:Protocol errors
These occur at the JSON-RPC level before reaching any tool.Authentication errors
Tool errors
Tool-level errors are returned within thecontent field of a successful JSON-RPC response:
Common tool errors
Best practices
1. Always checksuccess in tool responses
pagination.hasNext before requesting the next page. Requesting beyond the last page returns an empty result set.
3. Validate filter values first — When filtering by custom fields, query without filters first (small page size) to discover available values in the response metadata, then apply filters.
4. Retry on transient errors — For -32603 (Internal Error), implement exponential backoff retries. These are typically transient server issues.
5. Handle response size limits — Responses are limited to 90 KB. Use smaller page sizes and iterate through pages for large datasets.
Troubleshooting
Tool returns empty results
Tool returns empty results
- Check if filters are too restrictive — try without filters first
- Use
get-statsto verify data exists in the workspace - Confirm you’re using the correct
userPrivilegesvalue (referencevsprospect)
Response is truncated
Response is truncated
- Reduce
pageSizeto get smaller responses - Use specific
fieldsto limit returned data - Check
pagination.hasNextand request the next page
save-draft-content returns an error
save-draft-content returns an error
- Ensure
publishedContentis provided and non-empty - Call
get-content-instructionsfirst for the correct schema - Verify all
sourceContentObjectIdreferences exist viaget-contents - Check that
nameis at least 3 characters and unique per type in the conversation
Forbidden: insufficient privilege
Forbidden: insufficient privilege
The error message tells you exactly what’s needed:
Forbidden: tool '<name>' requires '<required>' privilege but your API key has '<current>'. Ask a workspace Admin to generate a new key with the required privilege level.