Contact Us 1-800-596-4880

Flex Gateway Agent Policies

Policies enforce rules when Flex Gateway processes requests, enabling you to secure and govern your server instances. Flex Gateway includes A2A and MCP specific policies that provide enhanced security and control over agent interactions.

Flex Gateway MCP and A2A server instances also support other Flex Gateway policies to protect server instances through rate limiting, authentication, authorization, threat protection, monitoring, and logging. For more information about MuleSoft-provided policies, see the Inbound Policies Directory and Outbound Policies Directory.

To extend existing functionality or define new functionality, create custom policies based on your specific business requirements. For information about creating custom policies, see Flex Gateway Policy Development Kit (PDK) Overview.

All agent policies are inbound policies and are not supported as automated policies.

SSE Policies

Both A2A and MCP support the following policies for Server-Sent Events (SSE) streaming:

Policy Summary

SSE Logging

Logs every SSE event while streaming

A2A Policies

Policy Summary

A2A Agent Card

Rewrites the Agent Card URL to match the server instance public URL

A2A PII Detector

Detects personally identifiable information (PII) in requests sent to the agent

A2A Prompt Decorator

Decorates prompts with context information

A2A Schema Validation

Validates agent requests to ensure they conform to the A2A specification

MCP Policies

Policy Summary

MCP Attribute-Based Access Control

Controls access to tools, resources, and prompts based on user information such as Tiers, IP, Headers, or Claims

MCP Schema Validation

Validates MCP requests to ensure they conform to the MCP specification

MCP Support

Adds MCP support to a Flex Gateway MCP server instance. This policy is required for your MCP server instance to function properly.