Errors
This page covers tool errors from the Acasia MCP server at https://mcp.acasia.com/mcp.
What an error looks like
An Acasia tool handler’s API error appears as a text item in content with isError: true on the tool result. The text starts with a code and usually includes a message. HTTP errors from Acasia include the method and path. Schema validation errors also set isError: true and can omit an Acasia code. An unregistered tool, such as an account tool that is turned off, returns a JSON-RPC error.
limit_exceeded: GET /v1/me: acasia-api refused this action because a limit was reached (request_id=...). A fair-use limit on acasia-api was reached. Try again in 30 seconds (after 2026-11-27T10:00:30Z).- Code
- A code the MCP server sets or a usable code Acasia sends
- Message
- What Acasia said, or what the MCP server says itself, for example when it refuses an input or a call times out
- request_id
- For non-2xx responses, the usable request ID from Acasia’s error, then the X-Request-Id header as a fallback. The ID can be absent.
- Retry time
- When Acasia said to try again, if it gave a usable time
- idempotency_key
- On errors from rent_gpu, start_gpu, cancel_gpu_start, keep_gpu_on and stop_gpu after the request was attempted. See Retrying a write.
Codes
These are the MCP server’s fallback codes for HTTP errors. It also uses them for local errors, such as input refusals and timeouts. A usable code from Acasia’s error takes precedence over the fallback.
| Code | HTTP | What it means | What the agent should do |
|---|---|---|---|
invalid_request | 400, 422 | Acasia rejected the inputs, or the server refused them before sending anything, such as an empty ID or a malformed idempotency_key. For rent_gpu and stop_gpu it can also mean the idempotency_key was already used for a different order. | For a local input refusal, fix the input and call again. If the message says the key was reused for a different order, check the earlier request. It may have queued a rental or stop. |
unauthenticated | 401 | No API key or token came with the call, or Acasia rejected it. With none, a tool that needs one does not call Acasia. | Connect your agent again, or check the API key or token it sends. |
permission_denied | 403 | The key or sign-in does not allow this action. | Don’t retry with the same access. Ask the person who set up the agent. |
not_found | 404 | Acasia has no such resource for your organization. | Check the ID, for example with list_rentals, then call again. |
method_not_allowed | 405 | Acasia does not allow that method on this path. | Report it with the request_id when available. |
internal | 500 | Acasia failed while handling the call. | For a write, use the retry guidance below. If the error repeats, report it with the request_id when available. |
unavailable | 503, other 5xx | Acasia is unavailable, did not respond in time, could not be reached, or the call was cancelled. | Wait before retrying a read. For a write, use the retry guidance below. |
invalid_response | Other | Acasia sent an unexpected HTTP status or a response the MCP server could not read or use. | For a write, use the retry guidance below. Acasia may have accepted the request. |
payment_required | 402 | The account cannot pay for this action. | Don’t retry. Tell the person; payment has to be fixed first. |
conflict | 409 | The resource’s current state does not allow this action, or this idempotency_key was already used with different inputs or a different price. | Read the resource again, for example with get_gpu or get_rental, then decide. If the key belongs to an earlier request, don’t send it again with different inputs. A new key makes a separate request, so use one only for a request you mean to make in addition to the earlier one. |
limit_exceeded | 429 | HTTP 429 with no usable code of Acasia’s own: a limit on Acasia was reached. The error says when to try again, if Acasia gave a usable time. | Wait until that time, or wait a while if there is none. Use the write retry guidance below for any write. |
Codes from rent_gpu
rent_gpu can also return these codes, which Acasia sends on the rental route today.
| Code | HTTP | What it means | What the agent should do |
|---|---|---|---|
agent_limit_approval_required | 402 | Acasia requires an owner or admin to approve this rental request under the agent’s daily limit policy. | After it is approved, retry rent_gpu with the same idempotency_key and inputs. |
agent_limit_denied | 403 | Acasia refused this rental start for the agent. If an earlier call with the same idempotency_key was accepted, that rental may still exist. | Check the earlier attempt before taking further action. Use a new key only if you intend to request a separate rental. |
agent_limit_currency_mismatch | 422 | The rental is not priced in the currency of the agent’s limit, or the agent’s rentals have spend in another currency. | Don’t retry. Tell the person. |
request_id_conflict | 409 | Another agent in your organization has a claim on this rental request key. A hold or an approval, including a denied or expired approval, can cause this even without a rental. | Check the earlier attempt before taking further action. Use a new key only if you intend to request a separate rental. |
Limits and retry times
limit_exceeded is the code for HTTP 429 when Acasia sends no usable code of its own. A 429 error says a fair-use limit was reached and, if Acasia gave a usable time, when to try again.
- The time comes from Acasia: a valid Retry-After header first, then retry_after in its error, then retry_at. It is rounded up to a whole second.
- A time more than 7 days away is ignored.
- A time already passed reads “Try again now.”
- A 429 with no usable time says to wait before retrying. Another error with a future retry time gets the same “Try again in” sentence.
- The MCP handler reports the retry hint. Your agent decides when to call again.
Retrying a write
When rent_gpu, start_gpu, cancel_gpu_start, keep_gpu_on or stop_gpu fails after the request was attempted, the error names its idempotency_key. Acasia may already have accepted the request. To retry after an ambiguous result, use the same key and inputs. Acasia can recheck a rental against the agent’s current daily limit on a retry. A local input refusal, such as an empty ID, names no key. Fix that input before calling again. For keep_gpu_on, Acasia validates minutes, so a refusal for that value includes the key.
- Before the first rent_gpu call, choose the idempotency_key yourself and keep it. Use 1 to 128 characters from A-Z, a-z, 0-9, _ and -. If the call times out or the reply is lost, retry with that same key and inputs. If you omit the key, the server generates one and a lost reply can leave you without it.
- A different idempotency_key asks for a different rental. Use a new key only for a rental you want in addition to the first.
- An earlier call with the same key may already have been accepted even if the retry returns agent_limit_denied, agent_limit_approval_required or request_id_conflict.
- The HTTP 202 receipt for rent_gpu or stop_gpu means Acasia accepted and queued the rental or stop request.
- list_rentals shows up to 100 recent rentals without their idempotency keys. If the list is inconclusive, the first call’s outcome is still unknown. For a timeout or other ambiguous result, retry with the original key if you have it. Keep the same organization: signing in again to a different organization makes the same key and inputs apply to a different account and can start another rental.
For SSH details, check the rental’s ssh field directly. get_rental and list_rentals return it with host, port and user when Acasia reports it. They also pass through ssh_keys_state and ssh_ready when present. A running rental can lack ssh while keys are pending or failed. Older rentals can have ssh without ssh_ready.
Your key in errors
For non-2xx responses from Acasia, the MCP server checks the error code, message, request ID, retry fields and displayed path for the API key or token. It redacts affected text or drops the affected value. The error can echo the idempotency_key as supplied. Keep credentials out of that field.
Account tools
These tools are off by default. They appear in your agent’s tool list when they are turned on.
list_ssh_keysOff by defaultLists the organization’s SSH keys.add_ssh_keyOff by defaultAcasia returns invalid_request for a duplicate public key in the organization. This write has no idempotency_key for replay.delete_ssh_keyOff by defaultAcasia returns not_found for a missing organization key. The MCP server rejects a malformed UUID with invalid_request before calling Acasia. This write has no idempotency_key for replay.get_statusOff by defaultunavailable when the status page is not published.