Skip to Content
MCP GatewayMCP Audit & Analytics

MCP access audit

See who made every MCP tool call and server change in the audit trail, and which rule allowed or blocked each call

When a tool call is blocked, a server returns something it shouldn't, or someone asks who touched Salesforce last week, you need the record behind it. Agent Trail records every MCP tool call the gateway handles, every MCP session an agent opens, and every change to an MCP server. Each entry names who acted, and each tool call names the rule that allowed or blocked it. This page covers the MCP entries in Agent Trail.

What's recorded for MCP servers and tools

Each row lists events by the name the Action filter shows.

GroupActionWhat it records
Tool callsTool ExecutedA call that passed the rules and ran: the tool and the MCP server
Tool callsTool FailedA call that was blocked or failed, and why: blocked by a rule, refused by a usage limit, or an error
Tool callsTools SearchedEach tool search and the tools it returned, but not the query
Tool callsApproval Requested, Approval Granted, Approval Declined, Approval ExpiredA call that needed approval, and what became of it
MCP sessionsAgent ConnectedEach MCP session an agent opens, with the servers it could reach, was blocked from, or couldn't reach
Server and tool changesMCP Created, MCP Updated, MCP DeletedA server added, changed, or removed
Server and tool changesTools SyncedEach time the gateway finds new or changed tools on a server, and the first time it reads a server's tools
Server and tool changesTools ApprovedNew or changed tools that were held back, approved by an administrator
Server and tool changesMCP Tagged, Tool TaggedA label assigned to a server or a tool
Server and tool changesUsage Limit Created, Usage Limit Updated, Usage Limit DeletedA usage limit rule added, changed, or removed
Sign-ins and accessConnection Created, Connection Removed, Connection Revoked, Connection ExpiredA person's sign-in to a server that acts on their behalf
Sign-ins and accessMCP Request Created, MCP Request Withdrawn, MCP Request DismissedA person's request for access to a server

Approvals, access requests, and held-back tools appear only when SecureAuth has turned those features on for your organization.

What each entry shows

  • Timestamp – when the event happened
  • Actor – the person or agent that acted
  • Action – the event, by the name the Action filter shows
  • Resource – the MCP server, agent, rule, or other item involved
  • Details – what the action did, such as the tool name, the error, or the fields that changed

When the event records them, an entry also shows the IP address and the client it came from.

See which rule decided a call

Expand a Tool Executed or Tool Failed entry to see the tool, the MCP server, the agent, and the decision.

  • Allowed – the call ran, and the entry names the rule that allowed it.
  • Blocked – the entry names the rule that blocked the call, and the reason. A call that matched no rule is blocked by default, so its entry names no rule.
  • Refused by a usage limit – the entry names the limit. A limit set to log only lets the call run and still names the limit on the entry.
An expanded tool call entry showing the rule that allowed it and the response filters that redacted it
An allowed call names the rule that allowed it

Expand an Agent Connected entry to see what the agent could use when it opened the session. Each server it could reach shows how many of its tools were allowed, conditional, or denied. A conditional tool runs only when an argument-level condition passes on that call, or only after someone approves it. Expand a server to see its tools grouped under the rule that decided them. Tools that matched no rule appear under No matching rule · default deny. A blocked server names the rule that blocked it, or says no rule grants access. A server the agent couldn't reach shows the reason. Each rule name links to the rule in Agent Access.

An expanded agent connection entry with tools grouped under their deciding rules
Each tool sits under the rule that decided it, and a blocked server names the rule that blocked it

See what was redacted

A tool call whose response was redacted carries a Redacted ×N badge, where N is the total number of spans replaced. Hover over the badge or move focus to it to see how many spans each response filter replaced. Expand the entry to see the same counts, with each filter name linked to it in Data Protection. Agent Trail stores the filter names and counts, never the redacted text.

Find MCP activity

Filter Agent Trail to the traffic you care about:

To answerFilter by
Who used a serverMCP, with Action set to Tool Executed
Why calls to a server failMCP, with Action set to Tool Failed
Who changed a server's setupMCP, with Action set to MCP Updated
Who signed in to a serverMCP, with Action set to Connection Created
What one person's agents didUser, or Group for a team
What every Claude Code agent didAgent type
What one agent didAgent
Calls to sensitive servers or toolsResource policy tag, such as finance
Calls by agents that act for no oneAutonomous, set to Only
Every call one of your rules acted onPolicy

The MCP filter can't find Agent Connected entries, access requests, or usage limit changes, because those events don't record a single server. Find them with Action, and narrow Agent Connected entries with User or Agent.

The Action, Agent, Agent type, User, Group, MCP, and Policy filters can also hide events. Click a value once to include it, again to exclude it, and once more to clear it. An exclusion keeps events that have no value for that field.

Find what a rule acted on

The Policy filter lists every rule your role can view: Agent Access rules, response filters, and usage limits. It also lists model access rules, model routes, model-call filters, and audit rules. It finds the calls a rule allowed, blocked, or redacted, the calls that went over a usage limit (including one set to log only), and every change made to the rule. A deleted rule keeps its entries. A link that still filters by it shows Deleted rule when none of the listed entries carries its name.

What end users see

People see their own MCP activity on the Activity page of the user portal: their tool calls, tool searches, the MCP sessions their agents opened, sign-ins to servers, access requests they made or withdrew, and approvals for their calls. They don't see which rule decided a call, which servers or tools an agent was blocked from, or why a server couldn't be reached. A redacted call shows a generic Content redacted badge that names no filter and no count. Changes to servers, tools, labels, and usage limits, and anyone else's activity, appear only in Agent Trail.

How long Agent Trail keeps MCP activity

Agent Trail keeps three months of history, then deletes it. To keep MCP activity longer, or to investigate it in your SIEM, forward events as they happen with Event forwarding.

Next steps

You can now trace any MCP tool call to the rule that decided it and the person it acted for, and see who changed a server and when. Next, forward MCP activity to your SIEM so you keep it past three months.

On this page