Skip to content
VirtualLP Virtual Learning Platform

Production Agents: Multi-Agent Collaboration, MCP and AgentCore

14 min read Topic 30 of 30 1 hands-on lab

A single agent with a few tools works well for focused tasks. Real business processes need several specialised agents, standard tool connections, secure identity, memory and observability – the move from demo to production.

Multi-agent collaboration

flowchart TB
    U[Customer] --> S["Supervisor agent<br/>understands the request, routes, combines answers"]
    S --> O["Orders agent<br/>tools: order status, cancel order"]
    S --> P["Payments agent<br/>tools: refund status, invoices"]
    S --> K["Policy agent<br/>knowledge base: returns, warranty"]
    O & P & K --> S --> U
Pattern How it works Good for
Supervisor (orchestrator) One agent plans and delegates to collaborators, then merges results Customer service, research, operations
Supervisor with routing Supervisor only forwards to the right specialist Lower latency for simple requests
Peer / swarm Agents hand off to each other Open-ended problem solving
Workflow of agents Deterministic sequence (Step Functions) of agent steps Auditable processes

Bedrock multi-agent collaboration lets a supervisor agent invoke collaborator agents by alias. Each specialist has its own instructions, tools and permissions – smaller prompts, better accuracy, least privilege per agent.

Model Context Protocol (MCP)

MCP is an open standard for connecting AI applications to tools and data. An MCP server exposes tools (e.g. query database, create ticket, search docs) with schemas; any MCP-capable agent or IDE can use them. Benefits: write a tool once, reuse it across agents and frameworks; consistent authentication and discovery.

Amazon Bedrock AgentCore

AgentCore provides managed building blocks to run agents built with any framework (Strands Agents, LangGraph, CrewAI, LlamaIndex) and any model:

Service Purpose
Runtime Serverless, session-isolated hosting for long-running agents
Memory Short-term and long-term memory (facts, preferences, summaries)
Gateway Turns APIs and Lambda functions into MCP-compatible tools
Identity Agent identities and secure delegated access (OAuth) to third-party services
Code Interpreter / Browser Sandboxed code execution and web browsing tools
Observability Traces, metrics and logs (OpenTelemetry) of every step

Strands Agents is AWS’s open-source SDK: define a model, a system prompt and Python functions decorated as tools; the agent loop is handled for you.

from strands import Agent, tool

@tool
def get_order_status(order_id: str) -> dict:
    """Get the delivery status of an order, e.g. ORD-1001."""
    return orders_table.get_item(Key={"orderId": order_id})["Item"]

agent = Agent(system_prompt="You are an order-support agent.", tools=[get_order_status])
agent("Where is my order ORD-1001?")

Production checklist

Area Practice
Evaluation Test sets of tasks; measure task success, tool-call accuracy, groundedness, latency, cost; regression-test every prompt/tool change
Security Least-privilege tools, per-user identity, guardrails, prompt-injection defences (including in retrieved content), approval for risky actions
Reliability Timeouts, retries, iteration limits, fallbacks to humans
Observability Trace every reasoning step and tool call; dashboards for tokens, errors and latency
Cost Smaller models for routing/simple steps, caching, limits per session
Governance Versioned agents and aliases, audit logs (CloudTrail), data-retention rules
Key point

Production agentic AI = specialised agents + standard tools (MCP) + managed runtime, memory and identity + evaluation and observability + least privilege.

Practise it

Virtual lab · Amazon Web Services · 45 min

Build an AI agent with Bedrock Agents, a Lambda tool and a knowledge base

Create an order-support agent that decides when to call your Lambda function (looking up orders in DynamoDB), asks for missing details, answers policy questions from a knowledge base, and explains every step in its trace.

Open lab

Quick revision

  1. Supervisor and collaborator agents divide complex work.
  2. MCP standardises how agents discover and call tools.
  3. AgentCore: runtime, memory, gateway, identity, tools, observability.
  4. Strands Agents and other frameworks build the agent loop in code.
  5. Evaluate, secure, observe and cap costs before going live.

Practise this topic

Hands-on virtual lab

Apply what you just read in a realistic, guided simulation. Free with a verified account.

Create a free account to track your progress and unlock virtual labs.