create_guardrail
Create an LLM or MCP-tool guardrail with checks and actions, then map it to servers to enforce policy on model requests and tool calls.
Instructions
Create an LLM or MCP-tool guardrail. LLM guardrails require checks and actions; MCP-tool guardrails can be created first and mapped to servers afterward. The new version becomes the policy anchor for downstream use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the guardrail | |
| checks | No | Checks to apply; at least one entry. Required when target is llm. | |
| target | No | LLM traffic by default, or MCP tool calls | |
| actions | No | 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 |