Limit contract
Limits define what Horizon will attempt to serve, not what every MCP client or upstream system can handle. Design server behavior so clients receive clear errors before a limit becomes a surprise.Runtime limits
The MB request and response size is a hard ceiling, not a
target. It comes from AWS Lambda’s synchronous invocation limit, and JSON and
base64 encoding overhead lowers the usable size further, so keep tool inputs
and outputs well under MB. There is no streaming; to move a
large file, upload it to external object storage out of band and pass a URL or
reference through the tool call.
Build limits
Configuration limits
Organization-specific quotas, included usage, and contract terms can vary by
plan.
What happens at a limit
A request exceeds the timeout
A request exceeds the timeout
Horizon returns an error to the client and the handler should be treated as
failed. Return a job ID quickly and continue long work asynchronously.
A request or response exceeds the size limit
A request or response exceeds the size limit
Each MCP request and response is served as a single synchronous AWS Lambda
invocation, which caps the payload at MB with no streaming.
JSON and base64 encoding overhead lowers the usable size further, so keep
tool inputs and outputs comfortably under this ceiling. To move a large file,
upload it to external object storage out of band, then pass a URL or
reference through the tool call and have your server read from that storage.
A build exceeds the timeout
A build exceeds the timeout
The build fails and no new deployable artifact is produced. The previous
deployment remains available unless you change it separately.
Session routing expires
Session routing expires
A client may need to initialize a new MCP session before sending follow-up
requests.
Runtime memory is exhausted
Runtime memory is exhausted
The server instance can fail or restart. Reduce memory use, stream work in
smaller chunks, or move large jobs out of the request path.
Designing within limits
Related failure signals
Related docs
Compute model
Understand runtime constraints.
Build system
Understand build defaults and failure modes.
Gateway
Understand request and session behavior.