-
Book Overview & Buying
-
Table Of Contents
Python Automation Cookbook - Third Edition
By :
Adding tools to AI models multiplies their capabilities, as it allows the AI model to access external data and even have control over the context by going back and forth over the data, inquiring about details.
The effect of tools is multiplicative. More tools allow for correlating different data sources and achieving more impactful operations. Some tools can also allow the model to produce actions, not only obtain information.
Many tools, like OpenAI Codex or Claude Code among many others, are capable of calling tools through MCP, which makes the operation just a matter of configuring the server correctly. In this recipe, though, we will see how you can access it in code. For documentation about Codex, check the OpenAI documentation here: https://developers.openai.com/codex/mcp.
In order to allow tools to be more easily connected, a standard called Model Context Protocol was created as an open standard, defining how a tool should connect with others. It&apos...