8 - Add Subagent to Convert Currency Using MCP Server
Create a subagent that connects to an MCP server with currency conversion tool, and then add that agent to our shipment agent.
You will learn
- How to create a subagent
- How to connect to an MCP server
Prerequisites
- You have completed the previous tutorial in the Joule Studio CodeJam Mission, Test the shipping agent.
In this tutorial we will explore two additional features of agents:
-
You can create subagents to be called from another agent, so you can better structure your projects. A subagent is built the same way as any other agent, just that it is added as a tool in another agent. For now, once an agent is used as a tool in another agent, it cannot be called directly.
-
You can connect your agent to an MCP server and use its tools as part of that agent.
You will create an agent that uses an MCP server for converting currencies, and then use that agent within your logistics agent.
We probably could have just added the MCP server to the first agent, but we wanted to show the subagent feature as well 😊.



















