What you’ll learn:
- How to use a Metorial MCP server
- How to use the Metorial SDKs
- Complete the Introduction guide
- Complete the Deploying your first MCP server guide
- Complete the Testing your first MCP server guide
5. Loop & Handle Tool Calls
- Send
messagesto OpenAI, passingtools: session.tools(TS) ortools=session.tools(Py). - If the assistant response contains
tool_calls, invoke it:
- Append both the tool call requests and their results to
messages. - Repeat until the assistant’s response has no more
tool_calls.
What’s Next?
You are all set on having a production-ready MCP server to use in your AI apps. Next, you will learn about all the dev tooling available.Next Up: How to monitor your server and tool calls
Learn how to use the observability & logging features.