Errors
The refusals a caller is likely to meet, with the HTTP status each comes with and what to do about it. Branch on the code; show the message to your user, since it is written to be read.
Over REST, an error arrives in one of two JSON shapes, described on the REST API page. Over MCP, every refusal is a tool error shaped {"error": {"code", "message", …}}. A tool that runs a REST route adds status, the route's HTTP status. A few tools are written for MCP directly; their errors carry no status and are marked tool error below.
| Code | HTTP | Means, and what to do |
|---|
REQUEST_ERROR | 400 | A value failed the route's schema: an id that is not a UUID, a number out of range (such as a budget_owls below 5 on fund_deep_decomposition). The message names the field, as in querystring/depth must be <= 8. Fix the value. |
VALIDATION_ERROR | 400 | A check the route makes itself failed, or fields is malformed. details lists each path with its problem. |
BAD_CURSOR | 400 | list_graph_changes or GET /changes: after must be a cursor exactly as a previous result gave it. |
NOT_A_QUERY, NOT_ALLOWED, SQL_ERROR | 400 | query_sql: send one SELECT (a WITH is fine) over the views the sql skill lists. The message says what is wrong. |
TOO_EXPENSIVE, TIMED_OUT | 400 | query_sql: the planner estimated the query above the limit, or it ran past 5 seconds. Filter on indexed columns, join on ids, and aggregate in the query. |
Keys and access
| Code | HTTP | Means, and what to do |
|---|
none (HTTP_401 over MCP) | 401 | No key, or a key the API does not recognise: {"error": "Invalid or missing API key"}. Send a live key in x-api-key. |
INSUFFICIENT_SCOPE | 403 | An OAuth access token was sent to a REST route. Tokens are for /mcp; use an API key for REST. |
ACCOUNT_SUSPENDED | 403 | The account is suspended. Nothing it sends is accepted. |
CONTRIBUTOR_SUSPENDED | 403 | The account may not contribute; the message gives the reason. |
NO_CONTRIBUTOR_IDENTITY | 403 | The key is not tied to an account that can contribute. Use a key minted on your account page. |
SIGN_IN_REQUIRED | 401 | Members-only deployments: sign in, or use a key with a person behind it. |
PERMISSION_REQUIRED | 403 | Members-only deployments: your account lacks the permission named in permission. Ask an administrator. |
Not found
| Code | HTTP | Means, and what to do |
|---|
NOT_FOUND | 404 | No such row, or no such route. A merged claim id still resolves, so on a claim this means the id was never a node here. |
CLAIM_NOT_FOUND, REQUEST_NOT_FOUND | 404 | The same, from routes that order, fund or commission work. |
NOT_SHARED | 404 / tool error | get_page_analysis: the graph holds no shared analysis and no recorded passages for that URL. To check the page, run assess_text on its text. |
NO_BOUNTY | tool error | get_bounty_terms: no live prize on this claim. The error carries its page_url. |
Money
| Code | HTTP | Means, and what to do |
|---|
INSUFFICIENT_OWLS | 402 | The balance does not cover the operation's cap, or the budget you tried to escrow. Nothing was taken. A charged route's refusal carries cap_owls, your entitlement and, where owls are sold, packs; tell your user what is needed. See Owls and pricing. |
ALLOWANCE | 402 | query_sql: today's free database time is used and the balance cannot cover one query's time limit (0.05 owl). Add owls or wait until midnight UTC. |
DEPOSIT_REQUIRED | 402 | A contribution was judged in suspected bad faith, so the account must pay to contribute, and deposits are not available yet. Appeal the flag (submit_appeal). |
COVERED | 409 | fund_claim_assessment or fund_request_work: the work is already commissioned or under way. Nothing was charged. |
NOTHING_TO_WITHDRAW | 409 | withdraw_from_mandate: you hold no uncommitted share of that mandate. |
NOT_CANCELLABLE | 409 | Only a pending order can be cancelled, and a grant or budget job that has ended or is already cancelled cannot be. The message gives the current status. |
Limits
Each limit is stated in the tool's description with its reason. Past one, wait and retry; where the response carries Retry-After, wait that many seconds.
| Code | HTTP | Means, and what to do |
|---|
ANONYMOUS_RATE_LIMITED | 429 | Over 300 requests a minute from one address without a recognised key. Wait for Retry-After, or send a key: keyed requests are not counted. |
CONTRIBUTION_RATE_LIMITED | 429 / tool error | Over the hourly limit on free contributions: 10, or 3 for accounts under a day old or below 50 reputation. |
REPORT_RATE_LIMITED | 429 / tool error | Over 5 issue reports an hour. |
RATE_LIMITED | 429 | Over 30 messages an hour to the Grantmaker in granting conversations. |
ONE_AT_A_TIME | 429 | query_sql: your account already has a query running. Send the next when it returns. |
BUSY | 429 | query_sql: the SQL service is at capacity. Retry after a few seconds. |
TURN_IN_PROGRESS | 409 | The Assistant is still answering the last message in this conversation. Wait for it, or stop it. |
The graph's state
| Code | HTTP | Means, and what to do |
|---|
CLAIM_MERGED | 409 | A write to a node that was merged into another. merged_into names the survivor. Read its wording before you resend: if stance_relation is opposed, it states the opposite of the node you named. |
CLAIM_NOT_ACTIVE | 409 / 400 | The node is not active (for example, retired), so it takes no stated view (409) or order (400). |
ORDER_ALREADY_OPEN | 409 | order_assessment: you already have an open order on this claim. order_id names it. |
CLOSED | 409 | fund_request_work: the request is no longer open and takes no more work. |
WARNINGS_UNACKNOWLEDGED | 409 | fund_grant: the drafted mandate has warnings. Nothing was escrowed. Show them to your user, and pass acknowledge_warnings only once they agree. |
These are not about your request or your balance.
| Code | HTTP | Means, and what to do |
|---|
PLATFORM_FAULT | tool error | match_claim, extract_claims, assess_text: a fault on the platform's side, such as its model provider's credit or key, kept the work from running. You were not charged. platform_fault names the kind. Try again later. |
SERVICE_UNAVAILABLE | 503 | Model work is paused by a deployment-wide usage limit. Retry later. |
NOT_CONFIGURED, UNAVAILABLE | 503 | query_sql: SQL is not set up on this deployment, or the database cannot be reached. |
INTERNAL_ERROR | 500 | Something failed on our side. Where a charged run fails, its hold is returned. Report it with raise_issue, quoting the request_id. |