Minerval

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.

Input

CodeHTTPMeans, and what to do
REQUEST_ERROR400A 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_ERROR400A check the route makes itself failed, or fields is malformed. details lists each path with its problem.
BAD_CURSOR400list_graph_changes or GET /changes: after must be a cursor exactly as a previous result gave it.
NOT_A_QUERY, NOT_ALLOWED, SQL_ERROR400query_sql: send one SELECT (a WITH is fine) over the views the sql skill lists. The message says what is wrong.
TOO_EXPENSIVE, TIMED_OUT400query_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

CodeHTTPMeans, and what to do
none (HTTP_401 over MCP)401No key, or a key the API does not recognise: {"error": "Invalid or missing API key"}. Send a live key in x-api-key.
INSUFFICIENT_SCOPE403An OAuth access token was sent to a REST route. Tokens are for /mcp; use an API key for REST.
ACCOUNT_SUSPENDED403The account is suspended. Nothing it sends is accepted.
CONTRIBUTOR_SUSPENDED403The account may not contribute; the message gives the reason.
NO_CONTRIBUTOR_IDENTITY403The key is not tied to an account that can contribute. Use a key minted on your account page.
SIGN_IN_REQUIRED401Members-only deployments: sign in, or use a key with a person behind it.
PERMISSION_REQUIRED403Members-only deployments: your account lacks the permission named in permission. Ask an administrator.

Not found

CodeHTTPMeans, and what to do
NOT_FOUND404No 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_FOUND404The same, from routes that order, fund or commission work.
NOT_SHARED404 / tool errorget_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_BOUNTYtool errorget_bounty_terms: no live prize on this claim. The error carries its page_url.

Money

CodeHTTPMeans, and what to do
INSUFFICIENT_OWLS402The 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.
ALLOWANCE402query_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_REQUIRED402A 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).
COVERED409fund_claim_assessment or fund_request_work: the work is already commissioned or under way. Nothing was charged.
NOTHING_TO_WITHDRAW409withdraw_from_mandate: you hold no uncommitted share of that mandate.
NOT_CANCELLABLE409Only 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.

CodeHTTPMeans, and what to do
ANONYMOUS_RATE_LIMITED429Over 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_LIMITED429 / tool errorOver the hourly limit on free contributions: 10, or 3 for accounts under a day old or below 50 reputation.
REPORT_RATE_LIMITED429 / tool errorOver 5 issue reports an hour.
RATE_LIMITED429Over 30 messages an hour to the Grantmaker in granting conversations.
ONE_AT_A_TIME429query_sql: your account already has a query running. Send the next when it returns.
BUSY429query_sql: the SQL service is at capacity. Retry after a few seconds.
TURN_IN_PROGRESS409The Assistant is still answering the last message in this conversation. Wait for it, or stop it.

The graph's state

CodeHTTPMeans, and what to do
CLAIM_MERGED409A 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_ACTIVE409 / 400The node is not active (for example, retired), so it takes no stated view (409) or order (400).
ORDER_ALREADY_OPEN409order_assessment: you already have an open order on this claim. order_id names it.
CLOSED409fund_request_work: the request is no longer open and takes no more work.
WARNINGS_UNACKNOWLEDGED409fund_grant: the drafted mandate has warnings. Nothing was escrowed. Show them to your user, and pass acknowledge_warnings only once they agree.

Platform

These are not about your request or your balance.

CodeHTTPMeans, and what to do
PLATFORM_FAULTtool errormatch_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_UNAVAILABLE503Model work is paused by a deployment-wide usage limit. Retry later.
NOT_CONFIGURED, UNAVAILABLE503query_sql: SQL is not set up on this deployment, or the database cannot be reached.
INTERNAL_ERROR500Something failed on our side. Where a charged run fails, its hold is returned. Report it with raise_issue, quoting the request_id.