How MoEngage turned over 400 APIs into agent tools with AgentCore Gateway
MoEngage used Amazon Bedrock AgentCore Gateway to securely expose 400 internal APIs as scoped AI agent tools, eliminating the need for multiple MCP servers and complex networking.

Introduction
MoEngage, a customerâengagement platform serving over 1,350 brands, needed a way for its AI agents to call roughly 400 internal REST APIs without exposing them to the public internet, leaking identity information, or overwhelming the agentsâ context windows. By adopting Amazon Bedrock AgentCore Gateway, MoEngage turned those private APIs into permissionâscoped agent tools, cutting months of engineering effort and reducing onboarding time from days to hours.
The problem with a naĂŻve MCP approach
The Model Context Protocol (MCP) provides a standard for agents to discover and invoke tools. MoEngage initially considered deploying a separate MCP server for each of its 25 engineering teams. This would have meant:
- Over 20 independent deployments to monitor, patch, and keep protocolâcompatible.
- Agents needing to stitch together responses from many servers.
- Each team learning MCP details unrelated to its core product work.
The result would be a fragile, highâmaintenance architecture that conflicted with three core constraints:
- No public endpoints â APIs must remain VPCâprivate across seven AWS regions.
- Identity must be injected, not modelâcontrolled â tenant and role information cannot be exposed as model parameters.
- Tool catalog size â 400 tools translate to >20,000 tokens, exceeding LLM context limits.
Four constraints that shaped the solution
MoEngage defined a set of nonânegotiable requirements before evaluating any option:
- Zero public exposure â the solution must keep all APIs private.
- Serverâside identity enforcement â IAMâbased policies must determine access, not the model.
- Scalable tool discovery â agents should receive only the subset of tools they are authorized to use.
- Minimal operational overhead â no custom MCP servers, toolâgeneration pipelines, or perâAPI networking changes.
How AgentCore Gateway satisfies the constraints
Amazon Bedrock AgentCore Gateway is a fully managed MCP server that maps OpenAPI specifications directly to MCP tools. Its key capabilities line up perfectly with MoEngageâs needs:
OpenAPIâdriven tool generation
- Teams continue to maintain their existing OpenAPI specs.
- Each operation is automatically exposed as a tool (e.g., `CampaignsAPI___searchCampaigns`).
- Updates to the spec instantly reflect in the tool catalogâno extra deployment steps.
Cedarâbased, serverâside authorization
- Agents authenticate with distinct IAM roles.
- Cedar policies are evaluated before the tool list is serialized, ensuring agents only see tools they are permitted to call.
- Example policy snippet:
``` permit(principal == Agent::"campaign-qa-bot-v1", action == Action::"tools/call", resource in ToolGroup::"campaigns-read"); forbid(principal == Agent::"campaign-qa-bot-v1", action == Action::"tools/call", resource in ToolGroup::"write-actions"); ```
- This eliminates the tokenâbudget problem because the filtered list is far smaller.
Private VPC connectivity
- AgentCore Gateway routes calls through AWS PrivateLink, keeping traffic inside the VPCs across all regions.
- No NAT gateways, reverse proxies, or VPN tunnels are required for each new API.
Centralized, managed MCP layer
- The AI Platform team owns the MCP layer endâtoâend; product teams focus solely on their REST APIs.
- No custom code, toolâalias registries, or circuitâbreaker logic is needed.
- Operational burden drops dramaticallyâMoEngage saved an estimated six months of engineering effort.
Practical outcomes
- Rapid onboarding â Adding a new API now takes hours instead of days.
- Secure, fineâgrained access â Agents cannot see or invoke unauthorized operations.
- Reduced latency and cost â Private routing eliminates publicâinternet hops and associated dataâtransfer fees.
- Scalable agent development â Teams can build richer agents without worrying about toolâcatalog size.
Closing thoughts
MoEngageâs experience shows that when an organization has a large, private API surface, a managed MCP solution like Amazon Bedrock AgentCore Gateway can turn a complex networking and security challenge into a streamlined, developerâfriendly workflow. By leveraging existing OpenAPI specs, serverâside Cedar policies, and private VPC routing, MoEngage delivered a secure, scalable agent toolset while freeing engineering resources to focus on core product innovation.
Source
Read original sourceWhy we picked this
Core AI tooling release integrating 400 APIs with Amazon Bedrock AgentCore Gateway.