Skip to main content
The Settings tab holds the plugins, Guardrails, and runtime limits that govern what the MCP Gateway forwards and how much it forwards. The same guardrails and runtime limits fields appear on the Create MCP Gateway form.

Plugins

Plugins attached to an MCP Gateway run on every tool call it serves. Guardrail Rules do not run on tool calls. To check tool traffic, use plugins and the gateway’s own Guardrails. Click + Plugin to attach one. Each listed plugin has a icon to configure it and an overflow menu to remove it. The create and update requests take a plugins[] array where each entry carries the plugin id and that plugin’s settings: PII Redaction takes entities, regions, entity_thresholds, threshold, language and on_failure; Trace Scrubbing takes mask.
Plugins enforced at workspace level apply as a floor: an MCP Gateway can add plugins or tighten their settings, but cannot remove or weaken an enforced one.

Guardrails

Guardrails attached to an MCP Gateway check the tool calls it serves. Click + Guardrail to pick a system Guardrail or a guardrail-capable Evaluator, then set where it runs:
  • Input: checks the tool name and arguments before the call reaches the upstream MCP Server. Resource reads are checked at this stage too.
  • Output: checks the tool result before it returns to the client.
  • Both: runs at both stages.
Cycle the stage with the row’s icon: Input, Output, Both. A row showing the icon blocks requests that fail this check: the call stops, and the client receives the guardrail’s name without its reason. A blocking input check runs on every call; an output-stage check runs only when the tool result carries text or structured content. A check that errors blocks the call with a generic failure, and a check that times out blocks it and names the guardrail. A row showing the icon scores requests without blocking them, publishes the score on the call’s trace, and samples at the rate set on the row. These system guardrails are available on an MCP Gateway: PII Redaction is a plugin that masks values in arguments and results. PII Detection is a guardrail that blocks or scores a call when it finds personal data. Use redaction when the upstream call should still run with masked values; use detection when a match should stop the call or record a score. Guardrails run after PII Redaction, so a judge never sees the unmasked values.
Plugins section with a + Plugin button and a Trace Scrubbing plugin row, above a Guardrails section with a + Guardrail button and a Secret Detection row showing the stage, blocking and 100 percent sample controls

Plugins and Guardrails sections on the MCP Gateway Settings tab

When a blocking Guardrail fails, the client receives a tool error that names the guardrail without its reason: Tool call blocked by input guardrail "<name>"; the tool was not run. for input, or Tool result blocked by output guardrail "<name>"; the result was withheld. for output. If the check cannot be evaluated, the call fails closed with the JSON-RPC error guardrail evaluation failed. Through the API, set guardrails on create or update. Each entry takes id, execute_on (input, output, or both), and optional sample_rate, is_guardrail, and options. On update, an omitted guardrails field leaves the list unchanged, and a non-empty list replaces it.

Runtime Limits

Caps applied to traffic through the MCP Gateway. Set them on the Create MCP Gateway form or on the Settings tab of an existing gateway: every limit is console-only, and no API field or SDK method sets them. Each field takes a whole number starting at 0. A gateway created through the API starts from the defaults in the table below, not from a blank record, with Max tools / gateway stored as 0. The request and response caps and the two request rates therefore apply immediately; only the tool cap waits to be set. Exceeding either request rate returns 429 with a JSON-RPC error -32001 and the message rate limit exceeded. The window is rolling: each request counts against the limit for the next 60 seconds, with no reset on a minute boundary. The response carries no Retry-After header, so back off until earlier requests age out of the window. Hitting a request, response, timeout, or rate limit, or losing the upstream server, answers the call with an error the MCP client displays. Three of them also change the HTTP status; the rest arrive as a 200 response carrying the error. A tool that runs and reports its own failure is not an error: the gateway returns a normal tools/call result with isError: true and the upstream content. A tools/call timeout means the gateway stopped waiting for the upstream response; the tool may already have completed. The gateway does not retry upstream tool calls, so retry a non-idempotent tool only when the tool itself is safe to repeat. The MCP Gateway errors reference covers the gateway, upstream, guardrail, and management strings, with their causes and fixes.

Network rules

MCP Server URLs and their token endpoints must be reachable over public HTTPS. Orq.ai refuses private, loopback, and link-local ranges, and does not follow redirects from a token endpoint. The workspace IP allowlist restricts requests to Orq.ai backend APIs. It does not restrict the AI Studio frontend.