upsert_guardrail_mcp_server
Create or replace one guardrail-to-MCP-server mapping without changing other server mappings; set run_on phases and covered integration capabilities.
Instructions
Create or replace one guardrail mapping for one MCP server without changing mappings for other servers. Requires a guardrail with target mcp_tools. run_on defaults to both input and output. Use list_guardrail_mcp_servers to inspect the current mapping set first. Repeating the same mapping is safe.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| run_on | No | Guardrail phases to run for this MCP server | |
| guardrail_id | Yes | Guardrail UUID or slug | |
| mcp_server_id | Yes | MCP server UUID | |
| mcp_integration_capability_ids | No | MCP integration capability UUIDs covered by this mapping |
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 |