mcp_gateway

Team guardrails evaluated before any scope policy.

patch/api/projects/{project_id}/mcp_gateway/rules/{id}/

Request

  • Base URL: https://us.posthog.com
  • URL: https://us.posthog.com/api/projects/{project_id}/mcp_gateway/rules/{id}/
  • Auth: HTTP bearer

Path parameters

idstring uuid required

A UUID string identifying this mcp org rule.

project_idstring required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Request body

idstring uuid
namestring

Short rule name shown wherever the rule locks a tool.

descriptionstring

Why this guardrail exists.

applies_to'everyone' | 'members' | 'agents'
  • everyone - Everyone
  • members - Members
  • agents - Agents
effect'needs_approval' | 'do_not_use'
  • needs_approval - Require approval
  • do_not_use - Block
tool_patternstring

fnmatch pattern against tool names. Blank matches destructive tools heuristically.

enabledboolean

Disabled rules are kept but not evaluated.

created_atstring date-time
updated_atstring date-time

Response

idstring uuid required
namestring required

Short rule name shown wherever the rule locks a tool.

descriptionstring

Why this guardrail exists.

applies_to'everyone' | 'members' | 'agents'
  • everyone - Everyone
  • members - Members
  • agents - Agents
effect'needs_approval' | 'do_not_use'
  • needs_approval - Require approval
  • do_not_use - Block
tool_patternstring

fnmatch pattern against tool names. Blank matches destructive tools heuristically.

enabledboolean

Disabled rules are kept but not evaluated.

created_atstring date-time required
updated_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.