Netskope MCP Server

createPolicyRule

Input Schema

NameRequiredDescriptionDefault
actionYesAction to take when rule conditions match
conditionsYesArray of conditions that must be met
descriptionNoOptional description of the rule's purpose
enabledYesWhether the rule is active
nameYesName of the policy rule
policy_group_idYesID of the policy group this rule belongs to
priorityYesRule evaluation priority (lower numbers evaluated first)

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "action": { "description": "Action to take when rule conditions match", "enum": [ "allow", "block" ], "type": "string" }, "conditions": { "description": "Array of conditions that must be met", "items": { "additionalProperties": false, "description": "A single condition in a policy rule", "properties": { "operator": { "description": "Comparison operator to use", "enum": [ "in", "not_in", "equals", "not_equals", "contains", "not_contains", "starts_with", "ends_with" ], "type": "string" }, "type": { "description": "Type of condition to evaluate", "enum": [ "private_app", "user", "group", "organization_unit", "location", "device" ], "type": "string" }, "value": { "anyOf": [ { "type": "string" }, { "items": { "type": "string" }, "type": "array" }, { "type": "number" }, { "items": { "type": "number" }, "type": "array" } ], "description": "Value or values to compare against" } }, "required": [ "type", "operator", "value" ], "type": "object" }, "type": "array" }, "description": { "description": "Optional description of the rule's purpose", "type": "string" }, "enabled": { "description": "Whether the rule is active", "type": "boolean" }, "name": { "description": "Name of the policy rule", "type": "string" }, "policy_group_id": { "description": "ID of the policy group this rule belongs to", "type": "number" }, "priority": { "description": "Rule evaluation priority (lower numbers evaluated first)", "type": "number" } }, "required": [ "name", "enabled", "action", "policy_group_id", "priority", "conditions" ], "type": "object" }