Approvals

Set a tool's approval policy

Changed on

Sets the approval policy for one tool, addressed by its role (e.g. crevioApi.createProduct, pdGmail.sendEmail): off refuses it, always_ask freezes each call as an approval, judge checks each write against the instructions the account's members gave the agent (a clearly requested one runs, the rest freeze as an approval), always_allow runs it. Covers Crevio API endpoints, connected apps and MCP servers; the agent's built-in platform tools have a fixed policy and answer 422 policy_fixed. A choice is kept even when it equals the default. A tool that moves money or changes access (x-crevio-locked on a Crevio API operation, this endpoint included) is never set to judge or always_allow: the call answers 422 policy_locked.

patch/tool_policies

Request

  • Base URL
    https://api.crevio.co/v1
  • Auth
    API key in header Authorization

Request body

object required
role, string required

The tool's role, as the agent calls it (namespace.function).

policy, 'judge' | 'always_allow' | 'always_ask' | 'off' required

Response

Success

object required
object, 'tool_policy' required
role, string required
policy, 'judge' | 'always_allow' | 'always_ask' | 'off' required

Changes

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    • warning

      added the new idempotency_error enum value to the error/type response property for the response status

    4 more changes in this revision