Hold a tool for approval
account_add_approval_ruleMake a tool wait for a person: every call of it, those whose argument is over a number (like invoices_create_credit_note when amount is over 500), or those whose argument is one of some values (like connect_call when method is POST, PUT, PATCH or DELETE). A held call answers approval_required with an approval_id and asks the approver; when they approve, call again with the same arguments, once (a call no person answers for adds the approval: header X-Conecto-Approval, or _meta.approvalId over MCP). The approver is an email, a saved channel, or a team (its managers, or everyone in it); each approver gets a link of their own, and the person whose call it is never approves it. With two_people_over, calls whose argument is over it need two people. Bills like Xero's bill approval: purchasing_create_bill with argument total holds bills over an amount, tax included; a rule on purchasing_pay_bill also holds batches with such a payment. Removing a rule is the owner's, on their account page, when the account has an owner email. $0.001. Costs $0.001 per call; nothing if it fails.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| over | No | Calls with argument over this are held. | |
| tool | Yes | ||
| values | No | Calls with argument equal to one of these (any case) are held. | |
| argument | No | An argument of the tool (or total, for purchasing_create_bill). | |
| approvers | No | Who in approver_team approves. | managers |
| approver_team | No | A team (account_list_teams). | |
| approver_email | No | ||
| two_people_over | No | Calls whose argument is over this need two people; higher than over. | |
| approver_channel | No | A saved notify channel. |