Decide action
decide_actionCheck proposed tool or connector actions before sending, exporting, deleting, or writing records; returns ALLOW, REVIEW, or BLOCK and records an audit decision in Vulnify.
Instructions
Call this before a consequential action with any tool or connector: sending an email or message, exporting or sharing data, deleting data, writing to production or financial records, payments, or external API writes. ALLOW: proceed. REVIEW: hold the action, tell the user it waits for approval in Vulnify, and check again with get_decision. BLOCK: skip the action and explain the reasons. Records a decision for a proposed action (POST /v1/events). This writes a security event and an audit entry, counts toward the organization quota, and may open a human review. The finalDecision field is the authoritative result. decision is what was stored and does not change when a review is resolved. finalDecision stays REVIEW until a human approves, denies, or the review expires. This tool does not approve the review. A REVIEW or BLOCK finalDecision means the action was not allowed. Optional content is scanned in memory and is not stored. An idempotencyKey makes a retry return the same event.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Agent name. Omit only when the API key is bound to an agent. Use this or agentId. | |
| action | Yes | Event action. Allowed values: READ_DATA, WRITE_DATA, DELETE_DATA, EXPORT_DATA, SEND_EMAIL. | |
| agentId | No | Agent id. Use this or agent. | |
| content | No | Optional text scanned for sensitive data. Scanned in memory by Vulnify and not stored. This server does not log it. | |
| resource | No | Resource name. Use this or resourceId. | |
| resourceId | No | Resource id. Use this or resource. | |
| destination | No | Where the data goes. Allowed values: INTERNAL, EXTERNAL_EMAIL, EXTERNAL_API. | |
| idempotencyKey | No | Retries with the same key return the stored decision for 24 hours instead of recording another event. | |
| recordsAffected | No | How many records the action would touch. Optional. 0 to 100000000. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Decision id. | |
| finalDecision | Yes | Authoritative result. Allowed values: ALLOW, REVIEW, BLOCK. |