invalid_criterion
Criterion not accepted
| Code | invalid_criterion |
|---|---|
| HTTP status | 400 |
| Responsible | caller: The caller (the agent or the person behind it) |
| Retryable | no (the same request will get the same answer) |
| Where it appears | Inside an MCP tool result (the HTTP response itself is 200, with isError: true). |
| Charged | Nothing. No error uses quota or charges money. |
What it means
A known criterion was given with a kind (require or prefer) or a value that this criterion does not accept. Zando did not run the request.
What an agent should do
- Read
paramto find the faulty kind or value, andallowedfor what is accepted. - Fix that criterion, or remove it, and send the request again.
The error's next_actions come first: they are written for this exact error (a call to send
instead, something to tell the user, this page). Tell the user the error's detail: its first
sentence is written to be read as is.
What a person should do
Nothing to do: the agent fixes its criteria itself.
Example
The error object is the same on every channel; only the order of next_actions follows the
channel. Ids, times and values below are examples.
As an MCP tool result (structuredContent)
{
"ok": false,
"contract_version": "1.6",
"call_id": "call_8hQ2xV4mN7pR",
"chain_id": "chn_3kT9wB6yL1sD",
"charged_micros": 0,
"currency": "usd",
"error": {
"type": "https://zando.ai/docs/errors/invalid_criterion",
"code": "invalid_criterion",
"title": "Criterion not accepted",
"status": 400,
"detail": "The field /criteria/0/kind accepts only prefer, so Zando did not run the request. Nothing was charged.",
"origin": "zando",
"responsible": "caller",
"retryable": false,
"retry_after_s": null,
"param": "/criteria/0/kind",
"allowed": [
"prefer"
],
"call_id": "call_8hQ2xV4mN7pR",
"chain_id": "chn_3kT9wB6yL1sD",
"charged_micros": 0,
"currency": "usd",
"next_actions": [
{
"type": "docs",
"url": "https://zando.ai/docs/errors/invalid_criterion"
}
]
}
}