Skip to content

Domain 3: Data access and integration

15 minute read
Content level: Advanced
0

This article describes how to connect agents to the systems that hold your operational knowledge, covering the shared tooling, ownership principles, and credential boundaries that keep a growing agent portfolio from fragmenting into duplicate integrations and over-broad access, along with the topology and documentation groundwork that lets an agent investigate without an operator feeding it context. The guidance holds whether your teams build their own agents or adopt a managed one.

Model Context Protocol (MCP) has become the standard interface for connecting agents to monitoring platforms, ticketing, topology data, and logs. Then, agents can discover and invoke tools consistently, regardless of implementation.

Amazon Bedrock AgentCore Gateway provides a managed abstraction layer for this. AgentCore converts existing AWS Lambda functions, OpenAPI specs, Smithy models, and remote MCP servers into MCP-compatible tools that you can access through a single endpoint. Instead of each agent maintaining its own connections, credentials, and integration logic, AgentCore Gateway centralizes protocol translation, authentication for both inbound agent identity and outbound service credentials, credential storage, and semantic tool discovery. Define a tool once, such as a Lambda function that queries your CMDB. Then, any agent in your organization can use the tool through the AgentCore Gateway endpoint. AgentCore Gateway also offers one-click integration with tools such as Salesforce, Slack, Jira, Asana, and Zendesk. This can help reduce custom integration code development time. As your agent portfolio grows, this centralized approach prevents tool duplication, enforces consistent access controls, and simplifies observability.

MCP server lifecycle management

When multiple agents rely on the same MCP server, that abstraction creates a critical dependency. Because an MCP server’s interface behavior, or underlying integration can affect every agent that consumes it, the server needs rigorous testing.

AgentCore Gateway helps manage this. Because you independently configure gateway targets, you can deploy a new version as a separate target alongside the existing one. Point a subset of consumer agents at the new target to validate behavior before you migrate the rest. For MCP servers hosted in Amazon Bedrock AgentCore Runtime, before you promote to production, deploy the updated server as a new runtime version and use a development endpoint test it.

Establish versioning for your MCP servers and maintain test suites that validate expected behavior. Keep multiple versions temporarily during transitions so that consumer agents migrate on their own schedules. Establish change notification processes so that agent owners know when upstream dependencies are evolving. Because MCP servers provide operational efficiency, Make sure to treat them as critical shared components, not isolated services.

Architectural governance

Without clear architectural guidance, teams can fragment your agent landscape by building duplicate MCP servers, creating overlapping agents, and making inconsistent choices about authentication, error handling, and data formats. Without clear guidance, you can end up with five Splunk integrations, three ticketing connectors, and no way to know whether they’re up to date or trustworthy.

Establish enterprise principles for shared and individual capabilities. Shared capabilities are integrations that multiple teams need, such as observability, ticketing, CMDB, deployment pipelines, and cloud APIs. Build these once, maintain them centrally, and expose them through AgentCore. Teams must own individual capabilities as domain-specific agent logic, but they must consume shared tools rather than rebuild integrations.

Use AWS Agent Registry for governance visibility. When a team needs a tool, they search the registry first. If a shared MCP server exists for that system, then they use it. If there isn’t one, then they propose one through the registry's approval workflow. This creates a feedback loop, where demand signals which integrations to centralize, and the registry prevents duplication by making existing capabilities discoverable. Make sure that your enterprise principles cover which systems require centrally managed integrations, who owns shared MCP servers, and what approval process governs new tools. Also confirm what standards shared tools must meet for authentication, error handling, versioning, and observability.

In multi-account organizations, teams need shared agents and tools hosted in a central account. AgentCore supports this through resource-based policies.

The owner account attaches policies to AgentCore Runtime and its endpoint. This grants the consumer account's AWS Identity and Access Management (IAM) role permission to invoke the agent. That role also needs an identity-based policy that allows the action. All three must be in place: One on the runtime, one on the endpoint, and one on the consuming role. Each policy must explicitly allow the cross-account principal. The same pattern applies to AgentCore Gateway. The owner account attaches a policy to the gateway resource to grant invoke access to the consumer account's role. Your central infrastructure team publishes shared agents and tools, registers them in AWS Agent Registry, and attaches policies that grant access to the appropriate consumer accounts. Teams then invoke the shared resource through its Amazon Resource Name (ARN). There’s no sharing of credentials between accounts, and you can update the policy to revoke access.

Credential management and access scoping

Credential management becomes critical when you centralize MCP servers. Amazon Bedrock AgentCore Identity provides a unified approach. It manages agent identities, stores credentials securely in a token vault, and lets agents access resources across systems through OAuth2 tokens, API keys, or other methods. Agents never have direct access to long-term secrets. Instead, AgentCore Identity vends short-lived credentials based on the agent's workload identity.

When you grant agents broad access to systems such as Splunk, Datadog, or ServiceNow, you create risk. An agent investigating one application could retrieve logs, metrics, or tickets that belong to another team or environment. The model doesn't inherently recognize organizational boundaries, so if the credentials allow it, then the agent queries across them. Use the services identity and credential framework to scope what each agent can access and enforce boundaries before the model sees the data.

Some agents hosted on AgentCore serve a specific team per request. For example, one agent scrapes logs from a Splunk MCP server for Team A, Team B, or Team C. To serve all three teams from one agent, put the teams behind a single gateway and separate their access across two layers.

Give the gateway three targets that point at the same Splunk MCP server. Assign each target its own credential provider for the Team A, Team B, and Team C credentials. These secrets live in the token vault behind the gateway, so the agent never handles them, and no caller can retrieve another team's credential.

That outbound split alone doesn't decide which team can invoke which target, because all targets share one MCP endpoint. Add an AgentCore Gateway access-control policy (Cedar) or an interceptor that maps each caller's identity to only its own target. The same agent, when it serves a Team A request, then reaches only Target A, which uses only Team A's credential.

This approach depends on each request reaching the gateway under a distinct identity. The agent propagates the caller's identity instead of calling as one generic service identity.

Note: Use separate gateways per team only when you require hard physical isolation.

For custom agents, scope credentials to the narrowest boundary that serves the use case. When agents need external systems, store credentials in AWS Secrets Manager and retrieve them at runtime. For team-level isolation, create separate credential configurations for each scope. For example, Team A's agent uses credentials scoped only to Team A's Splunk access, while Team B's agent uses credentials scoped to Team B's access. To simplify this, AgentCore Identity vends short-lived credentials based on workload identity so that agents never handle long-term secrets directly.

AWS DevOps Agent scopes access through Agent Spaces rather than through per-tool or per-function credentials. An Agent Space is a logical container that defines which AWS accounts the agent can reach, which third-party integrations it can use, and which users can interact with it. Each space operates independently, with its own IAM roles, investigation data, and conversation history.

Scoping happens at three levels:

  1. Agent Space - Decide which teams, environments, or service boundaries the space covers.

  2. IAM roles within the space - Control which AWS services, resources (through ARN patterns or tag-based conditions), and AWS Regions the agent can reach.

  3. Third-party integrations - Connect an observability platform such as Datadog or Splunk at the account level. Then, select which of its tools each Agent Space can use.

For stronger isolation, create Agent Spaces in separate primary accounts, one per application or environment, so that each team's MCP credentials stay separate.

Without scoping, the agent can surface data from unrelated applications during an investigation. Scoping keeps investigations focused and prevents one team from inadvertently viewing another team's resources.

Topology and relationship data

To troubleshoot an application, an agent needs context about what it is, such as which servers host it, which load balancers front it, and which databases it connects to. Without that map, the agent doesn’t know which log groups to query, which metrics to pull, or which dependencies might be causing issues.

Topology and relationship data provides a map of your environment that tells agents how components relate. For example, Application X runs on three Amazon Elastic Compute Cloud (Amazon EC2) instances behind an Application Load Balancer, connects to an Amazon Relational Database Service (Amazon RDS) database and a Redis cache, and writes logs to specific Amazon CloudWatch log groups. When an agent has access to these details, it can run a targeted investigation instead of asking the operator for each piece of context. If a service management ticket already exists for another system with similar symptoms, then the agent uses its knowledge of the shared dependencies to reason that a common component might be at fault.

Whether you store relationship data in a CMDB, Systems Manager, a dedicated topology service, or a custom data store, data accessibility through tools or knowledge bases helps agents narrow down issues and correlate across domains. Keep this data current, because stale topology data leads agents to investigate components that no longer exist or miss recently deployed ones. Automate topology discovery where possible, and set sync cadences that reflect how often your environment changes.

AWS DevOps Agent: Managed topology

AWS DevOps Agent handles topology differently from custom-built agents. AWS DevOps Agent automatically discovers and maps the resources and relationships within your applications. It builds topology graphs through several automated processes:

  • Scans your AWS accounts to identify compute, storage, networking, and database resources.

  • Analyzes AWS CloudFormation stacks, resource tags, and configuration data to find resource relationships.

  • Links infrastructure to deployment processes when connected to CI/CD pipelines.

  • Uses observability data from CloudWatch Application Signals and third-party tools, such as Dynatrace, to identify behavioral relationships.

The topology is interactive and queryable through the Operator Web App, with system-, container-, and resource-level views. During investigations, AWS DevOps Agent uses this topology to understand the blast radius, trace impact paths through dependency chains, and pinpoint root causes in distributed systems. It also identifies where resilience improvements have the most impact to make preventative recommendations. The AWS DevOps Agent doesn’t only use topology resources. It can use additional data sources and AWS service APIs to investigate beyond the mapped boundary. Follow the Credential management and access scoping section to scope the agent's IAM role.

Knowledge bases for operational intelligence

Agents are only as effective as the knowledge that they can access. However, operational expertise is usually across different sources. As a prerequisite for effective agentic operations, make that knowledge discoverable and consumable by agents.

Start by consolidating operational documentation into structured, indexable formats. Configure runbooks to follow consistent templates with trigger conditions, procedures, decision points, expected outcomes, and escalation criteria. Post-incident reviews must capture the specific evidence that led to diagnosis, such as log patterns, metric anomalies, and configuration states. The more structured your documentation, the more precisely agents retrieve and apply it.

Amazon Bedrock Knowledge Bases uses Retrieval Augmented Generation (RAG) to ground model responses in your data and connect knowledge bases to your existing repositories. This service handles chunking, embedding, and indexing.

AgentCore-hosted agents can query knowledge bases through two APIs. The Retrieve API returns relevant chunks that your agent includes as context when calling the model. This gives your agent control over when and how to use retrieved data. The RetrieveAndGenerate API combines retrieval and generation into a single call that returns a complete response with citations. For most operational agents, the Retrieve API is a better fit because the agent must determine, as part of its reasoning loop, which knowledge base to query and how to incorporate results alongside other data sources.

Knowledge bases don’t update automatically when source data changes. You trigger syncs through the StartIngestionJob API or AWS Management Console. Syncs are incremental and process only changed files. For critical operational data, trigger the sync automatically with Amazon EventBridge or AWS Lambda when source documents change in Amazon Simple Storage Service (Amazon S3). If your agent works from stale knowledge base data during an incident, then the consequences can be significant.

The most valuable application is continuous learning from incidents. Feed post-incident reports and root cause analyses into a Knowledge Base. When an anomaly appears, the agent retrieves comparable past events to inform the investigation. The agent surfaces patterns such as recurring permission errors or repeat failure modes. Root Cause Analysis (RCA) quality directly affects retrieval quality. If you capture concrete evidence in the form of actual log output, error codes, and timestamps, then the knowledge base can match on those specifics.

AWS DevOps Agent takes a different approach. Instead of connecting to a Knowledge Base, you provide guidance through runbooks and skills that you configured in the Agent Space web app. These steer how the agent conducts investigations. For example, document that your environment uses Dynatrace for alarms, Splunk for logs, and CloudWatch for serverless logs. Make sure to include runbook titles and descriptions because the agent uses them to select which runbook applies. You can activate or deactivate individual runbooks, point the agent to external knowledge through connected MCP servers, and refine new runbooks before you make them permanent. This gives the agent directions during investigations to see what works.

Amazon Quick provides a generative AI-powered service for making operational knowledge accessible through conversational interfaces. Engineers get instant natural language access to troubleshooting procedures, incident history, and operational patterns grounded in your data. Beyond conversational access, Amazon Quick serves as an analytics layer for exploring operational Key Performance Indicators (KPIs).

Amazon Quick also functions as a knowledge layer that other agents can query during orchestration, making it both a direct interface for engineers and a shared knowledge service for your agent ecosystem. It handles structured and unstructured data, and includes built-in connectors to systems where operational knowledge already lives. Teams can make runbooks and operational documentation accessible to agents without migrating content out of existing repositories. For teams that also use Knowledge Bases, the choice depends on their agent architecture. Knowledge Bases integrates directly into AgentCore-hosted agent reasoning loops through the Retrieve API, while Amazon Quick provides a conversational interface and broader data connectivity. They are complementary and can coexist.

If a post-incident review reveals that documentation is outdated, then update the documentation immediately. Because every agent draws on the same knowledge, one fix can improve every investigation that follows.

Agent scoping and boundaries

How you scope an agent directly affects its reliability, security, and maintainability. An agent with too broad of a scope (one that can query logs, create tickets, modify infrastructure, and approve changes) becomes hard to govern, hard to test, and risky to operate. When something goes wrong, the blast radius is large and the root cause is harder to isolate.

Think about agent scope in terms of job titles, not capabilities. A "network triage agent" has a clearer boundary than "an agent that can access all monitoring tools." When you define an agent's scope as a role and include specific responsibilities, data access, and decision authority, you constrain it to align with how your organization measures accountability. The agent must do what someone in that role would do, and nothing more.

Well-scoped agents have measurable success criteria and clear escalation paths. Define what success looks like for each agent: What tasks it handles, what quality bar it meets, and when it escalates to a human or another agent. If you can't articulate these boundaries clearly, then the scope is probably too broad.

Agent-to-agent communication

As your agent portfolio grows, individual agents must collaborate. An incident response agent might ask a topology agent which components are affected, or a change risk assessor might consult a compliance agent before approving a deployment. Agent-to-agent communication becomes relevant when workflows span multiple domains of expertise.

AgentCore Runtime supports Agent-to-Agent (A2A), an open-source protocol that Google developed and the Linux Foundation now hosts. This protocol allows communication between agents regardless of the framework or service that they run on. A2A uses JSON-RPC 2.0 over HTTP for standardized message exchange. Each agent publishes an Agent Card, a JSON metadata document served at a well-known endpoint (/.well-known/agent-card.json) that describes the agent's identity, capabilities, skills, service endpoint, and authentication requirements. Other agents can read a peer’s Agent Card to discover what the peer can do. Agents communicate through tasks. A client agent sends a message to a remote agent, and then the remote agent creates a task to track the work and return the results. A2A supports both synchronous request-response and long-running tasks with streaming updates, and includes built-in support for multimodal content (text, files, and structured data). Because A2A is framework-agnostic, agents built with different tools (LangGraph, CrewAI, Strands Agents, or custom implementations) can collaborate without a shared runtime or orchestration layer.

←Back to Main Article | Previous: Operational Reliability | Next: Cost Management →

About the Author

Brian Simpson-Adkins

Brian Simpson-Adkins is a Principal Technical Account Manager (TAM) in AWS Global Financial Services. He has over 20 years of experience in architecture, operations, and automation. Based in Australia, he partners with customers worldwide, and helps them resolve operational challenges through data-driven insights.