AI engineering glossary · Agents tools MCP
What is code interpreter tool?
Code interpreter tool (also called Code execution tool): A tool that lets an agent write and run code, usually Python, in a sandbox and read the output. It gives the model exact arithmetic, data analysis and file handling that plain text generation does poorly.
Code interpreter tool: an example
Given a CSV of monthly sales, the agent runs pandas code to compute a 12-month average and reports Rs 4.2 lakh.
Related terms
More Agents tools MCP terms
- Computer use
- Confused deputy problem
- Context compaction
- Conversation summary
- CrewAI
- Debate (multi-agent)
- Deep research agent
- Durable execution
Where you learn it
Code interpreter tool is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.