Skip to content

Errors and limits

Your agent can see an error at three levels. A tool error comes back inside a normal tool result. A JSON-RPC protocol error rejects the message before any tool runs. An HTTP error rejects the request itself. Agents handle tool errors most often. Each one carries a stable code and a retryable flag that says whether calling again can help.

A failed tool returns a normal MCP tool result with isError: true. The error object is in structuredContent.error, and the same JSON is in the result’s text content:

{
"code": "LOCKED",
"message": "The prop is checked out by someone else; coordinate with the holder or wait for the lock to lapse.",
"details": { "lock": { "holder": { "name": "sam" } } },
"http_status": 409,
"retryable": false
}
Field Meaning
code Stable error code. The REST API uses the same codes.
message What went wrong, usually with the fix.
details Extra structured data, when there is any. Examples are the lock holder or retry_after_seconds. Left out when empty.
http_status The HTTP status behind the error, when it came from the library.
retryable true when waiting and calling the same tool again can succeed. This covers rate limits, the agent-call allowance, INTERNAL, UNAVAILABLE, and HTTP 408, 500, 502, 503 and 504.

When the library sent a Retry-After header, details.retry_after_seconds holds its value.

Code Meaning What to do
FORBIDDEN The key is read-only and the tool needs write, or the member’s role does not allow the action. Use a write-scoped key, or ask an admin.
VALIDATION An argument is invalid. Examples are a bad hash, a wrong combination of arguments, an ambiguous member name or a bad cursor. Read the message and fix the arguments.
NOT_FOUND, ENTRY_NOT_FOUND and other *_NOT_FOUND codes The prop, version, review request, comment or job does not exist. Check the id.
LOCKED Someone else has the prop checked out. details.lock.holder names them. Do not force it. Tell the user, or wait for the lock to lapse.
STALE_FACE Someone published or restored a newer version after your checkout, so your check-in is based on an old version. Call release_checkout, then checkout_prop again, redo the edit on the current version and check in again.
CONFLICT The action clashes with existing state. For example, an open review request already owns that version’s review. Read the message and details. They name the item in the way, such as open_request_id. Work through that item.
HASH_MISMATCH The inline file bytes do not match content_hash. Recompute the SHA-256 of the exact bytes you send.
DENYLISTED Your library blocks this content. Do not retry.
USER_NOT_FOUND A member name did not match anyone. Use the exact login name or a numeric id.
JOB_STATE The job’s state does not allow the action, such as cancelling an import the editor already picked up. Check the job with get_unreal_import.
RATE_LIMITED The API key went over its rate limit. details.retry_after_seconds is the wait. Wait that many seconds, then retry. Slow down the loop that makes the calls.
AGENT_CALL_LIMIT The workspace used its monthly agent-call allowance. details has retry_after_seconds (seconds until the next UTC month), used and limit. Stop calling tools and tell the user. See Agent-call allowance.
EMBEDDINGS_UNAVAILABLE Similarity or image search cannot run. With http_status 409, the reference prop has no similarity data yet. With 503, the search service is unavailable right now. For 409, pick another reference prop or try later. For 503, wait and retry. Text search still works.
UNAVAILABLE A dependent service, such as the thumbnail store, did not answer. Retry after a short wait.
INTERNAL The tool failed unexpectedly. Retry once after a short wait.

The Unreal import tools have their own codes, listed in Import props into Unreal.

The server rejects some mistakes before a tool runs. These come back as a JSON-RPC error instead of a tool result.

JSON-RPC code Cause
-32602 Unknown tool name, unknown argument, missing required argument, an argument of the wrong type, or params that is not an object. The message names the problem. For unknown arguments it lists the allowed ones.
-32601 The server does not support that method. It supports initialize, ping, tools/list and tools/call.
-32600 The message is not a valid JSON-RPC 2.0 message, or it has no method.
-32000 A request other than a tool call, such as initialize or tools/list, went over the rate limit. error.data carries the same payload as a RATE_LIMITED tool error, and the response has a Retry-After header.

These come back on the request itself, before it reaches a tool. Most MCP clients show them as a connection or transport error. When the response has a body, it is the error envelope, with a stable error.code and a message you can show to people.

Status Cause
400 The body is not valid JSON.
401 The API key is missing, wrong or revoked, or the member who created it has left the workspace. A token that doesn’t start with ph_live_ gets This token is not a hosted Prophouse key. Hosted keys start with ph_live_. Create one at app.prophouse.dev/keys.
402 The workspace is suspended. Fix billing at app.prophouse.dev/billing.
403 The key belongs to a different workspace than the <slug>.prophouse.dev address you called. A read-scoped key is not rejected here. Tools that write return a FORBIDDEN tool error instead.
405 The request used GET or DELETE. The MCP endpoint takes POST only. The response has no body.
410 The workspace is scheduled for deletion, so its library is closed. To cancel the deletion, email support@prophouse.dev.
411 The request has no Content-Length header (MCP requests need a Content-Length header (1 MB or less).).
413 The request is larger than 1 MB.
429 The rate limit or the monthly agent-call allowance was reached on a JSON-RPC batch, or on a message without an id. Single requests get an MCP error instead. See Rate limit.
503 The library is being prepared or is unavailable for a moment, or API access for the workspace is paused (Retry-After: 120). Retry after the number of seconds in Retry-After when the response has one. If the pause persists, contact support@prophouse.dev.

Each API key can make 240 requests per minute, counted over a sliding 60-second window. Every MCP request with that key counts, including initialize, tools/list and tool calls. Requests the limit rejects do not count.

Over the limit, a tool call gets a normal tool error (isError: true) instead of a transport failure:

{
"code": "RATE_LIMITED",
"message": "Rate limit exceeded for this key. Back off and retry.",
"details": { "retry_after_seconds": 30 },
"http_status": 429,
"retryable": true
}

The HTTP response also has a Retry-After: 30 header. Other single requests, such as initialize or tools/list, get a JSON-RPC error with code -32000 and this payload in error.data. A JSON-RPC batch, or a message without an id, gets plain HTTP 429 with Retry-After: 30.

When your agent sees RATE_LIMITED, it should wait details.retry_after_seconds before it tries again. Do not retry in a tight loop. Treat other errors with retryable: true the same way, and use details.retry_after_seconds when it is present.

On hosted plans, MCP tool calls count toward the workspace’s agent-call allowance for the calendar month (UTC).

Plan Agent calls per month
Free 500
Indie 5,000 per seat
Studio 25,000 per seat (3-seat minimum)
Enterprise Custom

On Indie, the allowance is the per-seat number times the members active this month. On Studio, it is the per-seat number times the workspace’s members, with a minimum of 3. All members and keys draw from that one total.

What counts:

  • Each tools/call request counts once, whether the tool succeeds or fails.
  • initialize, tools/list and ping do not count.
  • Search, browse and download from the desktop app, the web library, the Unreal plugin and the REST API never count. Search there is unlimited on every plan.

Prophouse never charges for agent calls. When the workspace reaches its allowance, tool calls return a tool error with code AGENT_CALL_LIMIT until the next UTC month starts. details.retry_after_seconds is the number of seconds until then, and details.used and details.limit show the count. The response also has a Retry-After header. A batch request that includes a tool call gets plain HTTP 429 instead, with the same Retry-After header. Search from the apps keeps working.

To raise the allowance, invite members or move to a larger plan at app.prophouse.dev/billing. On Studio each member is a seat, past the 3-seat minimum. On Indie, members count in the months they use Prophouse. Free has a flat allowance, so members don’t change it. The Usage page at app.prophouse.dev/usage shows this month’s agent calls against the allowance, with Agent calls by member and Agent calls by API key tables.

Every MCP request must be 1 MB or smaller. That limit matters for the two tools that carry file data inline:

  • search_props_by_image: keep the reference image under about 500 KB before base64 encoding.
  • checkin_prop with file_base64: keep the file under about 500 KB. The server refuses inline files over 700,000 bytes with VALIDATION. For larger files, call checkin_prop without file_base64. It returns upload_required with upload instructions, and that upload has no such limit.

Three tools hand out file URLs: get_download_url, checkout_prop, and checkin_prop when it returns upload_required. Each URL is one of two kinds.

Kind How to recognize it How to use it
Presigned A full URL. Download URLs have an expires_at time and requires_auth: false. Uploads have mode: "direct". Send no Authorization header. For uploads, send exactly the headers provided. Use a download URL before expires_at, or ask for a new one.
Server path A path such as /api/v1/blobs/<content_hash>. Downloads have expires_at: null and requires_auth: true. Uploads have mode: "server". Resolve it against https://api.prophouse.dev and send your usual Authorization: Bearer header.

A presigned URL carries its own authorization, so leave your API key off that request. A 412 response to a direct upload means the file is already stored. Treat it as success. After any upload, call checkin_prop again with the same arguments to commit the version.