create_guardrail
Create a guardrail with specified checks and actions to filter requests. Use this to define policies for request validation and blocking.
Instructions
Create a guardrail with checks and actions for request filtering. Create it first, then reference it from configs; the new version becomes the policy anchor for downstream use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the guardrail | |
| checks | Yes | Array of checks to apply (at least one required) | |
| actions | Yes | Actions to take when guardrail checks pass or fail | |
| workspace_id | No | Workspace ID to create the guardrail in | |
| organisation_id | No | Organisation ID (required if workspace_id not provided) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | Whether the tool call succeeded and returned structured data | |
| data | No | Structured success payload when ok is true | |
| error | No | Structured error payload when ok is false |