---
schema_version: "1"
id: a8a0ae3acdd158b9b2595bfd451f5aaa9ff28e9c6d0af2b4f38b4021c68bfeb7
title: A2A Agent Card Policy
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/gateway/1.13/policies-included-a2a-agent-card.md
canonical_url: https://docs.mulesoft.com/gateway/1.13/policies-included-a2a-agent-card
source_site: docs.mulesoft.com
content_type: documentation
content_hash: 1d4115d0ce723899ab1ff51091b815514482946b725c411d474f9e0dea9fb6c7
description: MuleSoft Documentation Site
release: "1.13"
latest: false
---
---
product: Omni Gateway
version: 1.13
keywords: api gateway, flex gateway, gateway, policy
---

# A2A Agent Card Policy

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

<table><colgroup><col> <col></colgroup><tbody><tr><td><p><strong>Policy Name</strong></p></td><td><p>A2A Agent Card</p></td></tr><tr><td><p><strong>Summary</strong></p></td><td><p>Rewrites the Agent Card URL to match the public URL of the gateway</p></td></tr><tr><td><p><strong>Category</strong></p></td><td><p>A2A</p></td></tr><tr><td><p><strong>First Omni Gateway version available</strong></p></td><td><p>v1.9.3</p></td></tr><tr><td><p><strong>Release Notes</strong></p></td><td><p><a href="https://docs.mulesoft.com/release-notes/gateway/policies/a2a-agent-card-release-notes">A2A Agent Card</a></p></td></tr><tr><td><p><strong>Returned Status Codes</strong></p></td><td></td></tr></tbody></table>

> [!NOTE] This policy supports Agent2Agent Protocol (A2A) version v0.3.0. To learn more about A2A
> versions, see [A2A Releases](https://github.com/a2aproject/A2A/releases).

## Summary

The A2A Agent Card Policy rewrites the URL in the A2A Agent Card responses so that the exposed URL
points to the public endpoint of the Omni Gateway A2A server instance rather than directly to
backend services. This ensures that all client requests are routed through Omni Gateway, enabling it
to enforce security and access controls, while preventing direct access to backend resources.

The A2A Agent Card policy also enables the **Total Agent Calls** metric that tracks the total
successful and unsuccessful calls made to the agent. To view **Total Agent Calls**, see
[Viewing Key Metrics in API Manager for Managed Omni Gateway](https://docs.mulesoft.com/gateway/1.13/managed-view-api-metrics).

## Configuring Policy Parameters

### Omni Gateway Local Mode

The A2A Agent Card policy isn’t supported in Local Mode.

### Managed Omni Gateway and Omni Gateway Connected Mode

When you apply the policy from the UI, the following parameters are displayed:

<table><colgroup><col> <col></colgroup><thead><tr><th>Element</th><th>Description</th></tr></thead><tbody><tr><td><div><div><p>Consumer URL</p></div></div></td><td><div><div><p>The consumer URL of the agent’s A2A service where JSON-RPC requests are sent.<br>If the consumer URL isn’t set, the server instance’s public endpoint is used.</p></div></div></td></tr><tr><td><div><div><p>Card Path</p></div></div></td><td><div><div><p>The path where the agent presents the card.</p></div></div></td></tr></tbody></table>
