Ackuity Request assessment

Model Context Protocol

MCP security: how to secure MCP tool calls before they run

What is MCP security? MCP security is the practice of controlling what AI agents do through Model Context Protocol servers and tools. It covers which servers an agent may connect to, whether tool descriptions can be trusted, and whether each tool call should run in its current context. Vetting servers is necessary. Checking each call before it runs decides which actions execute.

What are the main MCP security risks?

  • Tool poisoning. A tool description can contain hidden instructions. Treat the description as untrusted metadata when judging whether the proposed action fits the task.
  • Definitions that change after approval. A server can describe a tool differently later. Compare the running version with the definition you reviewed and require a new approval when its behavior changes.
  • Confused deputy. A server may act with more authority than the user has. An agent’s ability to invoke a tool does not establish what that user is allowed to do through it.
  • Over-broad tokens. A credential that can read and write many resources makes it harder to contain an unintended call. Scope its permissions to the resource and operation the tool actually needs.
  • Data leaving through a legitimate tool. A familiar tool may be allowed to send a message or share a file. The proposed audience, destination and data can still exceed the user’s authorization.

See the Cloud Security Alliance MCP security whitepaper, its research note on tool descriptions, and the OWASP Agent Control Standard.

How does MCP tool poisoning lead to an unsafe action?

Illustrative. A support agent is asked to summarize an internal ticket. The description of an approved tool now includes unrelated instructions to send the summary outside the approved audience. The agent proposes a share using a tool its credential is allowed to invoke.

The tool and credential pass their own checks. The user asked for a summary, and the proposed share changes who can see it. Review the intended audience alongside the call, and verify which tool definition was active when the call was proposed. See how a tool change affects an existing approval and why a signed server still needs data and destination boundaries.

What does an MCP gateway see, and what does it miss?

A gateway sees the traffic routed through it. In our routing model, agents act through 11 kinds of action and only 3 (LLM, MCP, API) cross a gateway. Check the actual routes in your environment, including paths to files, databases and other connected tools.

We work alongside IAM and gateways. The gateway comparison explains the routing assumptions and the questions to ask about coverage.

How do you secure MCP tool calls before execution?

  1. Check the action on its execution path. We check every agent action before it runs, on the paths where we are deployed inline. The check sits beside the agent where the agent cannot rewrite it.
  2. Evaluate the call in context. Each action gets an Agent Security Context Graph with 29 signals across 3 dimensions (context, intent, trajectory).
  3. Return a response scaled to the risk. We use Allow, Constrain, Human in the loop, Block or Terminate. Detection is deterministic, with no LLM calls in the decision path and a decision time of 40 to 100 ms.

Five MCP tool calls, five responses

Illustrative examples. Your policies set each response.

Proposed callResponseWhy
Read the status of a ticket the requester is assigned to.AllowThe call runs as planned. The target and the request fit the task.
Summarize a record with fields the requester does not need.ConstrainMask those fields, then run the scoped action.
Change a shared setting that requires an owner’s review.Human in the loopPause the action until a person decides.
Send a record to a recipient outside the user’s authorized scope.BlockStop the action before it runs.
Keep proposing organization-wide changes after repeated blocks.TerminateShut down the agent. This response is kept for the worst case.

Read more about execution control and the threat models.

Where we check: inline, through the sidecar in the agent's pod or an API integration with platforms such as Copilot Studio. In observe-only mode, which starts from existing telemetry, we report on actions and do not block them.

What is changing for MCP in 2027?

Google plans to begin enforcing its Workspace agent access requirement on February 1, 2027. The requirement routes agent access through Workspace MCP servers, including via the Workspace CLI, instead of direct REST API calls. Help Net Security reported the change.

Microsoft’s Agent 365 Ignite update described MCP server blocking and a preview of MCP Firewall. When MCP becomes the sanctioned path, the question moves from which servers are allowed to which calls should run.

MCP security checklist

  1. Inventory connected servers, their owners and their tools.
  2. Pin the tool definitions you approve and require review when they change.
  3. Scope each token to the tool and resources it needs.
  4. Check each proposed call in context before it runs.
  5. Log the decision with the call and keep a target-side record to verify the outcome.
  6. Use a mock tool description with harmless out-of-scope instructions in an isolated test to check whether the policy catches the mismatch.

Use the Agent Security Evaluation Checklist and the MCP call audit explainer to plan your checks.

Frequently asked questions

What is MCP security?
MCP security is the practice of controlling what AI agents do through Model Context Protocol servers and tools. It covers which servers an agent may connect to, whether tool descriptions can be trusted, and whether each tool call should run in its current context.
How do I secure MCP tool calls before they execute?
Check the proposed call against the user, the task, the tool and the intended destination before it runs. Put the check inline on the route you intend to control, and verify what happened at the destination.
What is MCP tool poisoning and how do I detect it?
MCP tool poisoning introduces untrusted instructions into tool metadata. Compare the active description with the version your team approved, and investigate changes that introduce an unexpected action or destination.
Is an MCP gateway enough to secure AI agents?
A gateway can inspect the MCP calls routed through it. Map the routes that bypass that gateway and verify what each control knows about the request, the tool and the target before the action runs.
Which tools secure MCP tool calls at runtime?
Server vetting helps teams decide which servers to connect, gateways inspect routed traffic, and inline controls evaluate proposed actions before they run. We check each action on paths where we are deployed inline and work alongside IAM and gateways.

See where your agents are exposed.

Start with a free 30-day Agent Exposure Assessment.

Get the assessment