Check an action against the consent policy
check_actionCheck if an action is allowed by the consent policy before performing it. Returns allow, deny, or ask to proceed, stop, or request approval.
Instructions
Check whether an action is permitted by the ConsentGate owner's consent policy BEFORE you perform it. Call this for any potentially sensitive, irreversible, or high-impact action — e.g. sending email or messages, posting publicly, spending money, deleting or overwriting files, calling external/destructive APIs, or changing system state. Returns a decision: "allow" (you may proceed), "deny" (do NOT proceed), or "ask" (no rule matched — not approval; use request_approval to get a human decision, or ask the user). This call does not block. FAIL CLOSED: if the result is anything other than "allow", do not perform the action.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | Yes | The specific action you intend to take, e.g. "send_email", "delete_file", "transfer_funds". | |
| category | Yes | Action category. Built-in categories: email, social_post, message, file_write, file_delete, api_call, spending, calendar, system, custom. Any short label (<=50 chars) is accepted. | |
| metadata | No | Structured details of the action (e.g. recipient, amount, path, url). Used by the owner's rules and shown in any approval prompt. Max 10KB. |