Errors and fixes

This page lists every error Agate gives: the app's messages, the developer API's answers, the MCP refusals, the SDK's WriteErrors and the contracts' reverts. One rule holds everywhere: a refusal before sending means nothing was sent and no money moved. An error after sending (an SDK receipt stage, an MCP sent or reverted), or an SDK error whose txs is not empty, needs a look at the chain before trying again.

In the app

The app words its own messages (app/src/lib/account/errors.ts); the sentences below are what it shows.

What you seeWhyWhat to do
no sign-in code arrivesthe email is still on its way, or in spamwait a minute, check spam, or use Google
That code doesn't match. Check the newest email from Agate and try again.a mistyped or older codeuse the newest email's code
Your next 10,000 test dollars arrive <when>.test dollars come once every 24 hours per accountwait until then
Agate couldn't pay the network fee this time. Nothing was sent. Try again in a minute.the sponsored-fee policy refused (2 MON a user operation, 1,000 a day)try again in a minute
a code or passkey promptconnecting an AI or delegating the Assistant asks you to confirm againconfirm (Accounts and gas)
No passkey was made.the passkey dialog was closed before a passkey was madeTry again, I already have a passkey, or Use your email instead
No passkey signed you in.the dialog was closed, or the browser found no Agate passkey (it cannot tell which)Try again or use my phone, Make a new passkey, or Use your email instead
This device already has a passkey for Agate. Sign in with it.this device already holds an Agate passkeySign in with it
This passkey is from the older sign-in, where a passkey was added to an email or Google account.this passkey belongs to an email or Google accountContinue: it signs that account in
That took too long. Try again.a passkey request lasts 5 minutestry again
Too many tries from this network. Wait a minute, then try again.too many passkey requests from one network in a minutewait a minute, or use Google or your email
Too many new accounts from this network. Try again in an hour.5 new passkey accounts were made from this network in the last hourUse your email instead, or try again in an hour
New passkey accounts are paused for today. Use Google or your email instead.the day's cap on new passkey accounts (150) is reached, or Dynamic's test environment is full (then Google and email fail too)use Google or your email, or try tomorrow
Agate couldn't accept that passkey. Try again.Agate's server could not verify the passkey's answertry again
Your passkey worked, but sign-in didn't finish. Try again.Dynamic did not finish the sign-inTry again: the account now exists, so it signs in
That code doesn't work. Check it, or try another of your backup codes.the backup code is wrong, used, or replaced by a newer settype it again, or use another of your codes
That isn't a backup code. They look like K7QD-9XMP: 8 letters and numbers.what was typed has the wrong shapetype the code as saved; case, spaces and the dash do not matter
No new passkey was made, so your code still works.the passkey dialog was closed while using a backup codetry again: the code was not used up
Agate can't be reached right now. Try again in a moment.Agate's server did not answertry again in a moment
This browser can't use passkeys. Use Google or your email instead.the browser has no passkey supportuse Google or your email, or another browser
Your passkey didn't confirm it. Try again, or Cancel.confirming again with a passkey did not go throughtry again
Your passkey worked, but it didn't finish. Try again.confirming again: Dynamic did not finishtry again
It now fills <x> GPU-hours at $<p> on average for $<d>.the book moved between the quote and the sendlook at the new numbers and confirm again
At prices <month> can still pay, the book holds $<x> (<h> GPU-hours). The rest would buy above that.the book is thinner than your orderbuy at most that, or wait for the maker to requote
At these prices this trade can only lose: the asks are above what <month> can pay. Nothing was sent.buying above the ceiling can only losewait for a lower ask
At these prices this trade can only lose: the bids are below the least <month> will pay. Nothing was sent.selling below the floor can only losewait for a higher bid, or hold to the end
This trade needs more test dollars than your account holds. Nothing was sent.not enough test dollarstrade less, or take the day's test dollars
<Month> settles once every day is final. Nothing was sent.settle opens only after the month's last day is finalwait until about 07:00 UTC on the 1st

Developer API

Every error, a path the API does not have included, is { "error": "<sentence>" } with 400, 404, 429 or 503, and 429 and 503 carry a retry-after. The full table, sentence by sentence: Developer API.

MCP connection

What the server answers before any tool runs (server/src/mcp/routes.ts):

StatuserrorWhyWhat to do
401missing credentialno token and no connector URLsign in (OAuth) or use the connector URL
401invalid or expired access tokenthe OAuth token ended or the connection passed its end datesign in again (/mcp in Claude Code, codex mcp login agate)
401unknown connectionthe connector URL is wrongthe person checks the URL they saved; a URL shows only once, so for a new one they connect the AI again from Connected AIs
401this AI connection was disconnected: connect it again from Agatethe person disconnected this connection (its URL is replaced and its OAuth tokens revoked); a tool call on it gets this sentence as the grant_revoked refusal instead (status 200), since AI apps show a 401 as a connection errorthe person connects the AI again from Agate
405method not alloweda GET on the MCP addressMCP clients POST; this is not a page to open
413payload too largea request body over the limitsend less in one call
429rate limit exceeded for this connectionmore than 240 requests a minute on one connectionslow down
429too many requestsmore than 30 wrong connector URLs a minute from one addressstop guessing

MCP refusals

A tool refusal is { "status": "refused", "rule": "<rule>", "detail": "<sentence>" } with the MCP error flag set. Nothing was signed.

ruleWhyWhat to do
over_per_trade_capthe trade, or a Short's collateral, is above the cap per trade; or a roll's proceeds aretrade less, roll in parts, or request_approval
budget_leftthe pocket does not hold enough dollarstrade less; only the person can add to the budget
daily_limitthe connection used its trades of the last 24 hours (<used> of <n> trades used in the last 24 hours)wait; my_limits shows what is left
grant_expiredthe connection is past its end datethe person connects it again
grant_revokedthe person disconnected itstop; nothing more can be done from it
above_bandthe buy would average above the ceiling, a sure losswait for a lower ask
below_bandthe sale would average below the floor, a sure losswait for a higher bid
price_movedthe book moved between the quote and the sendquote again, then trade
thin_bookthe book holds less than the order within the bandtrade the amount detail names, or wait
empty_bookno asks at allwait for the maker to quote
not_enough_tokensthe pocket holds fewer GPU-hours than asked to sell or rollget_portfolio, then a smaller size
drip_too_soonthe pocket's test dollars were taken less than 24 hours agowait until the time in detail
sponsor_limitthe network fee could not be sponsored right nowtry later
bad_amountan amount with too many decimals, off the 0.0001 GPU-hour lot or the $0.01 price gridround it
bad_inputa quote without the amount its side needspass dollars for a Long, gpu_hours for a Short
no_marketthe month has no order book yet (a trade says <gpu> <month> has no Kuru market yet)get_prices lists the tradable months
parts_too_smalla pay-me-daily Long too small for that many daily parts (the size is too small for that many parts)buy more
refuseda check with no rule of its ownread detail
not_foundan approval or autopilot order of another connection, or noneuse an id this connection got
not_allowed_contract, not_allowed_functiona call the pocket may never makeonly the trade tools trade
payee_must_be_you, approve_router_only, no_native_valuea call that would pay someone else, approve another spender, or send MONnever; these protect the person

A month that is not listed at all, or a GPU with a price and no market, answers status: "error" with a message (<gpu> <month> is not listed, <gpu> is price only: ...), not a refusal.

status: "sent" is not a refusal: the trade was sent and has not been seen landing yet. Check activity before trying again; the same idempotency_key returns the first answer.

The Allow page

When the person connects an AI, Agate's server refuses a connection that breaks a limit:

errorWhat to do
the per-trade cap must be above 0 and at most the budgetlower the cap or raise the budget
trades per day: 1 to 50choose 1 to 50
the end date must be within 90 dayschoose an earlier end date
the Assistant is not delegated to agate yet (try again in a few seconds)wait a few seconds and allow again
pocket_in_use: this pocket already serves "<label>"; ...disconnect that AI, or use the next pocket
the signed permission does not match: ...allow again; the app signs a fresh permission

SDK errors

Every SDK failure is a WriteError with a stage, a reason and a message (and a hash once sent).

A write can be several transactions; the stage names the step that failed, and WriteError.txs lists the ones that already landed (an approval before a failed trade, say).

stagereasonWhyThis step sent?
checkAboveBanda buy above the ceiling, or a buy-back that costs more than holding the Short paysno
checkBelowBanda sale below the floorno
checkThinBook, Depththe book cannot fill the order within the bandno
checkEmptyBookno asksno
checkPriceMovedKuru's simulation fills less than the book read beside itno
checkInsufficientBalancenot enough test dollarsno
checkInsufficientTokensnot enough GPU-hours of that monthno
checkDripTooSoonthe faucet's 24 hours have not passedno
checkMonthNotFinalsettle before every day of the month is finalno
checkPostOnlyErrora post-only limit order would cross the bookno
checkNoMarketthe month has no Kuru order book yet (<gpu> <month> has no Kuru market yet)no
checkPartsTooSmalla pay-me-daily Long too small to split into that many daily parts (the size is too small for that many parts)no
checkNoPositionsa close or claim with no position ids (no positions given)no
simulatethe contract error's namethe call reverts in simulationno
estimatethe RPC's error namegas estimation failedno
sendthe wallet's error namethe wallet did not sendno
receiptNoReceiptsent, no receipt within 120 s: it may still landlook the hash up first
receiptrevertedlanded and revertedyes, and it failed

An amount the SDK cannot use throws AmountError before anything is read: <what> must be a decimal string or a bigint, never a number, <what> "<v>" is not a plain decimal like 12.34, <what> "<v>" has more than 6 decimals, <what> must be a multiple of 0.0001 GPU-hour, <what> must be a positive multiple of $0.01.

Contract errors

What a reverted call names, by contract (from contracts/src):

ContractErrorMeaning
AgateRouterSlippageExceeded(got, min)the fill was worse than the bound in the call
AgateRouterBadAmount(), BadSize()zero, or off the 0.0001 GPU-hour lot
AgateRouterNoMarket(series), NotSeries(series)the month has no book, or the address is not Agate's
AgateRouterBadPayee(payee)a payee that is one of Agate's own contracts (it could never claim)
AgateRouterNotYourPosition(id), WrongSide(id)closing someone else's position, or the other side
AgateSeriesMonthFinal()opening a pay-me-daily position once every day of the month is applied
AgateSeriesMonthNotFinal()settling before every day of the month is final
AgateSeriesTokenBalance(), ShortBalance()redeeming more than held
AgateSeriesNoPosition(id)no such position
AgateFactoryMonthNotOpen(month, current)only this month and the next can be listed
AgateFactoryNotReady()the five reference days are not all final yet
AgateFactoryBadBand(sum5)the reference days give no valid range
AgateDollarDripTooSoon(nextAt)the faucet's 24 hours have not passed
AgatePriceFeedNoFinalPrice()no final price for that day
AI pocket (session key)CallViolatesParamRule()above the cap, or another bound in the call
AI pocket (session key)InvalidCallData()a call the pocket may never make (a transfer, say)
AI pocket (session key)RateLimited()more operations than the day allows