Zando

All errors

policy_denied

Refused by an account rule

PreviewThis code is in preview: it may change or disappear before it becomes stable. Payment, preview first (0.3b): the refusal of a call by a rule set for the paying account or the beneficiary (policy_denied) comes with the rules a paying account sets.
Codepolicy_denied
HTTP status403
Responsiblecaller: The caller (the agent or the person behind it)
Retryableno (the same request will get the same answer)
Where it appearsInside an MCP tool result (the HTTP response itself is 200, with isError: true).
ChargedNothing. No error uses quota or charges money.

What it means

A rule set for this account, or for the person it acts for, does not allow this call. Zando did not run it and charged nothing.

What an agent should do

  1. Do not retry the same request: it will be refused while the rule stays as it is.
  2. Tell the user which call was refused; only the owner of the account can change its rules.

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

The owner of the account can review its rules if this call should be allowed.

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/policy_denied",
    "code": "policy_denied",
    "title": "Refused by an account rule",
    "status": 403,
    "detail": "A rule set for this account does not allow this call, so Zando did not run it. Nothing was charged.",
    "origin": "zando",
    "responsible": "caller",
    "retryable": false,
    "retry_after_s": null,
    "param": null,
    "allowed": null,
    "call_id": "call_8hQ2xV4mN7pR",
    "chain_id": "chn_3kT9wB6yL1sD",
    "charged_micros": 0,
    "currency": "usd",
    "next_actions": [
      {
        "type": "docs",
        "url": "https://zando.ai/docs/errors/policy_denied"
      }
    ]
  }
}