Bentrix Docs
HomePricingDashboard

Errors and limits

Every refusal a request can meet, and the bounds that keep one agent from taking the person's window.

JSON-RPC errors

CodeMeans
-32700the body is not JSON
-32600not a valid request (a GET where only POST is served, a wrong Origin)
-32601no such method
-32602the arguments do not fit (an unknown field, a missing one, a wrong type, an unknown task id)
-32603an error inside Bentrix
-32020Mcp-Method or Mcp-Name is missing or differs from the body
-32021a task request from a client that did not declare the tasks extension
-32022a protocol version Bentrix does not speak
-40001busy

An HTTP 401 means the token is not (or no longer) valid — it was revoked, or another program paired under the same name; pair again. 403 means the Host or the Origin is not this computer's.

01A tool's refusal

A tool that runs and refuses answers isError: true with Bentrix's own sentence, and _meta["bentrix/machine"] when there is a kind to branch on (insufficient_scope, busy, expired). See calling tools.

02The limits

They exist so that one misbehaving agent cannot take the person's window, memory or sockets:

BoundValue
a request's body1 MB
a request's head16 KB, 64 headers
open connections64
requests20 a second per token, bursts of 60
calls running at once16 per token (the 17th is busy)
subscriptions32 per token
a pairing request's body4 KB; pairing 1 every 2 seconds, bursts of 8
reading a request10 s; writing an answer 30 s; a stream 600 s
keep-alive on a streamevery 15 s

Bentrix 0.1.382Every number, name and default on these pages is read from the application itself.What is comingWhat changed