create_guardrail
Create LLM or MCP-tool guardrails with checks and actions. Use it to define a policy anchor for downstream traffic and map MCP-tool guardrails to servers later.
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "create_guardrail"
}
}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 | Call succeeded | |
| data | No | Success payload | |
| error | No | Failure details |