Applies to v1.3.18

Errors, Limits And Correlation

Purpose

This page is the common reference for what can go wrong when you call the platform and what to do about it: how each surface reports a failure, the rate, size and time limits that apply, which failures are safe to retry, and how to follow one of your calls through the platform's audit trail with a correlation id of your own.

How Each Surface Reports Failure

Failures come from three places, and it helps to tell them apart before reading the details:

  • the Gateway, before your request reaches the platform: a missing or malformed credential, or an edge rate limit;
  • the platform: authentication, authorization, limits, and requests it cannot process;
  • the downstream system a tool calls, whose answer the platform passes back to you.

Gateway

Status Body Cause
401 Problem details titled Gateway authentication rejected the request., with the reason — for example A bearer token or API key is required for this route. The route requires a credential and the request carried none, or its bearer token is malformed or clearly expired. On /runtime/ paths the response also carries the WWW-Authenticate challenge
429 Problem details: Request throttled by gateway edge rate limiting., with a Retry-After header An edge rate limit for this kind of traffic was reached
413 — A webhook body larger than 256 KB, on the webhook route

Authentication, on every surface

A request the Runtime cannot authenticate is answered 401 with a WWW-Authenticate: Bearer resource_metadata="…" header. The body names the reason: {"error": "…"} on the tools API and the MCP endpoints, and a JSON-RPC error with code -32000 on an A2A agent's JSON-RPC endpoint. See Common Authentication Failures.

Tools API

The tools API answers with the downstream system's own status and mapped body when the call reaches it, and with problem details (application/problem+json) when the platform stops it first: 400 for a request it cannot process, 403 when the caller is not allowed to use the tool or must first consent to a per-user connection (with code: downstream_consent_required and a consentUrl to open), 404 for a tool that does not exist or is not published to the client application, 413 for an oversized body, 429 for a rate limit, and 502 for a downstream response over the size limit. The full table is in Calling Tools Over REST.

MCP

MCP failures arrive at three levels.

HTTP status, before the message is processed. The body is a JSON-RPC error with no id.

Status Cause
400 Malformed JSON-RPC, a missing session id where the deployment requires one, or an MCP-Protocol-Version the Runtime does not implement (JSON-RPC code -32022, whose data lists the versions it supports)
403 The request carried an Origin that is not allowed
404 The Mcp-Session-Id is unknown — expired, ended or never issued. Initialize again
405 / 406 / 409 A GET stream request the endpoint cannot serve: streaming switched off, text/event-stream missing from Accept, or a second concurrent stream for one session
413 The body is larger than the platform accepts
429 A rate limit, or the tenant's cap on concurrent MCP sessions

JSON-RPC errors, for a message that was processed and refused:

Code Meaning
-32700 Parse error
-32600 Invalid request
-32601 Unknown method
-32602 Invalid parameters — for example a tools/call without a name, or a malformed pagination cursor
-32603 Internal error
-32001 Access denied: the caller is not allowed to call this tool
-32042 URL elicitation required (MCP 2025-11-25, only to a client that declared elicitation.url): the person must open the consent URL in data.elicitations and then call again

Tool results with isError: true. The call reached the tool and the tool has something to report. The result's text content says what:

  • the downstream system answered with an error status — Downstream returned HTTP 404: …, followed by its mapped body;
  • the tool name is unknown to this client application;
  • a Lazy-mode tool was called before its schema was discovered — the text tells the model to call discover_tool_schema first;
  • the downstream response was over the size limit — the text starts with downstream_response_too_large;
  • the tool calls a service with the person's own consent, which they have not given — the text starts with downstream_consent_required and names the link to open. A client on MCP 2026-07-28 that declared URL elicitation receives an input_required result with that link instead, and retries once the person has connected.

An error result is meant for the model to read and act on; it is not a protocol failure, and the SDKs return it rather than raising. See MCP Invocation Semantics For Discovery.

A2A

JSON-RPC errors on an agent's endpoint use the standard codes above, plus:

Code Meaning
-32000 Authentication or authorization failure — told apart by the HTTP status, 401 or 403
-32001 Task not found — including a task that belongs to another agent
-32002 Task not cancelable: it has already finished
-32003 Push notifications not supported for this task
-32004 Unsupported operation — for example a message sent to a task that has already finished
-32009 The A2A-Version header names a version the platform does not support

REST answers the same conditions with problem details: 400 for an invalid request or an unsupported operation, 403 for access denied, 404 for an unknown task, 409 for a task that cannot be cancelled.

Task states. A task that was accepted and then went wrong is not an error response: it is a task in TASK_STATE_FAILED, with the reason on status.message. That covers an agent reporting that it cannot proceed, a hosted agent that exceeded its turn budget, a message that arrived while the agent's work queue was full, and an agent that ended its turn without declaring an outcome. A task in TASK_STATE_INPUT_REQUIRED is not a failure: the agent is waiting for your answer. See A2A Task Lifecycle.

Webhooks

A webhook delivery is answered with a status and, for a refusal, problem details whose type is urn:apimapper:webhook:<code>: 404 for an unknown URL, 403 for a source address outside the trigger's ranges, 413 for an oversized body, 401 for a missing or wrong signature or token, 409 for a paused trigger, an inactive agent or a skipped overlap, 415 and 400 for a body that is not JSON or lacks its delivery id, 429 when the agent's queue is full, and 503 when triggers are switched off or the delivery could not be recorded. 202 means accepted; 200 means the delivery id was already accepted, and returns the original execution. The full table, with what a sender should do on each, is in Starting Agents From Webhooks.

Hosted-agent executions API

Starting a run answers 202 (or 200 when it waited). Validation failures — no text and no preset, parameters that are not a JSON object, a preset of another agent — are 400, and an unknown agent or an execution you may not see is 404, both as problem details with a type of urn:apimapper:agents:<code>. A refusal by the agent's access policy (403), an unavailable agent (409) and an agent at capacity (429, with Retry-After: 30) return the start response itself, with status TASK_STATE_FAILED and the reason in failureReason. A run that started and then failed is not an HTTP error: read its status. See On-Demand Agent Runs.

An unattended run — from a schedule or a webhook — has no caller to answer. It ends in an execution status with a failure kind and a reason, visible on the Agent Triggers page. See Monitoring & Troubleshooting.

Rate Limits

Rate limits apply at two layers, both in fixed one-minute windows:

  • The Gateway applies generous edge limits per kind of traffic — discovery, invocation, administration and anonymous health checks — counted per caller where it can identify one and per client address otherwise.
  • The Runtime applies per-endpoint limits, each counted per tenant, client application (or agent host) and client address, plus an overall ceiling across all endpoints, counted per client address.

The Runtime's shipped defaults, which your operator may change:

Endpoint Requests per minute
GET …/tools 30
POST, DELETE …/mcp; POST …/messages 20
Opening an MCP stream: GET …/mcp, GET …/sse 10
POST …/tools/{toolId}/invoke 20
A2A requests on an agent host 20
Opening an A2A stream 10
POST …/agents/{agentId}/executions (shares the invoke limit's settings) 20
POST /runtime/hooks/agents/{publicId}, per webhook URL 60
All Runtime endpoints together, per client address 600

Callers that share one egress address — several services behind the same NAT gateway — share the per-address budgets.

Every MCP message counts against the MCP limit — initialize, tools/list and each tools/call alike — so a client that re-initializes or re-lists tools before every call spends its budget three times as fast. Reuse the session, and call tools/list again only when told the list changed.

A request limited by the Runtime is answered 429 with problem details and a Retry-After header giving the seconds until the window rolls over; wait at least that long. The webhook endpoint's 429 for a full agent queue and the executions API's 429 for an agent at capacity carry Retry-After: 30. A 429 from the Gateway carries Retry-After the same way. If you hit a limit in normal operation rather than in bursts, ask your operator to review it for your tenant.

Payload Limits

Limit Default When exceeded
Request body on the MCP endpoints, the tools API and A2A 1 MiB 413 with an explanation
Webhook body 64 KB per trigger by default, which an administrator can change; 256 KB at most 413 payload-too-large
Executions API: text; parameters 32 000 characters; a JSON object of 32 768 characters 400
Downstream response accepted from a tool's API 16 MiB (an operator can set 1 KiB to 64 MiB) 502 on the tools API; an isError result on MCP; code downstream_response_too_large
Stored-procedure tools: rows, value size, result sets Per tool The call fails with its own code instead of returning a truncated answer. See Calling a stored procedure tool

Timeouts

  • Tool calls over MCP, the tools API and the SDKs return when the downstream system answers. Set your client's timeout above the slowest tool you call.
  • A2A blocking calls, and hosted-agent executions started with "returnImmediately": false, return when the agent finishes or pauses, which for a hosted agent can take up to its turn budget — 300 seconds by default. Return immediately and follow the task or execution if you or a proxy cannot wait that long.
  • Webhook deliveries are answered as soon as the execution is recorded, not when the agent finishes.
  • Streams — MCP and A2A — carry a keep-alive comment every 15 seconds while idle. An intermediary that closes idle connections sooner than that cuts streams.
  • MCP sessions end after 30 minutes without activity by default; the next request answers 404, and the client initializes again. The SDKs do this for you.

See TLS, Proxies And Idle Timeouts.

When To Retry

Failure Retry? What to do
429 from the Gateway or the Runtime Yes, after a delay Wait for Retry-After when present; otherwise back off as described under Rate Limits
Webhook 429 or 503, or a network error on a delivery Yes Honour Retry-After, and resend with the same delivery id: a delivery that did get through is then acknowledged with 200 instead of running twice
Webhook 400, 401, 403, 404, 409, 413, 415 No Fix the sender or the trigger. See Responses
A dropped or timed-out request to start a hosted-agent execution No, not blindly A second request starts the agent again. If you received an executionId, read it; otherwise check the Executions tab before starting again
A hosted-agent execution that ended Failed or TimedOut Only by starting a new run, after reading the reason A run that called tools may have acted. Triggers retry by themselves only failures that happened before any tool call
404 for an unknown MCP session Yes, once Initialize again, then repeat the request. The SDKs do this automatically
A network error or a timeout on a tool call Only if the tool is safe to repeat The call may have reached the downstream system. Check the tool's annotations: readOnlyHint or idempotentHint tools can be repeated; for others, check the downstream system first
A downstream error in a tool result or the tools API Depends on the downstream status Treat it as you would the downstream API's own answer: a 5xx may be transient, a 4xx needs different input
A dropped A2A SendMessage No Re-sending starts a second task, and an agent that called tools may already have acted. Follow the task you were given with GetTask; if you never received its id, check with the agent's operator before sending again
TASK_STATE_FAILED Only by sending a new message A finished task cannot be resumed. Read status.message first: a full work queue is worth retrying later, a refusal is not
400, 401, 403, 404 (other than a session), 413 No Fix the request, the credential or the configuration. Repeated invalid credentials raise security alerts

Correlation IDs

Every call the platform serves gets an execution ID that the platform generates; all audit records for the call share it. You can add your own identifier as well — an order number, a ticket number, a trace id — so that you and an operator can find your call from something your system already knows.

Sending one. Add an X-Correlation-Id header to any request to the Runtime: MCP, the tools API, an A2A agent or the hosted-agent executions API. The SDKs send it for you from a provider or a per-call argument.

X-Correlation-Id: order-4711

The value is accepted only if it is at most 128 characters of letters, digits and - _ . : / + = @ #. Anything else is discarded — not truncated — and the call proceeds without one. The value is recorded alongside the execution ID, never in place of it, so no caller can write into another caller's trace.

Checking it was accepted. The response carries the accepted value in X-External-Correlation-Id. If that header is missing, your value was rejected.

Finding the call. In the Portal, under Governance, both the audit records and the runtime call monitoring (Call Flow) views filter by external correlation ID and show it next to the execution ID. Opening a call shows every step — authorization, credential resolution, the downstream request, the response mapping — with its outcome and timing, and the payloads when payload logging is enabled for the tool. Give the correlation id to your administrator when you report a problem. See Runtime Call Monitoring and External Correlation IDs.

Downstream. Whether the downstream API behind a tool receives the execution ID, your correlation id, both or neither, and under which header names, is configured per toolset by the administrator. See Correlation Propagation.