MCP frente a las llamadas a funciones
Cómo se diferencia MCP de las llamadas directas a herramientas del modelo.
MCP frente a las llamadas a funciones es una lección gratuita de MCP Academy en CoddyKit. Esta es la lección 1 de 4. Puedes leer la lección completa abajo gratuitamente — luego la practicas en el navegador con un editor de código integrado y un tutor de IA 24/7. Forma parte de la ruta de aprendizaje de MCP Academy, y tu progreso se sincroniza en la web y la app de CoddyKit. El curso de MCP Academy incluye 4 lecciones en total.
Partes de esta lección aún no han sido traducidas y se muestran en inglés.
Two Ways to Give Models Tools
You already know models can call tools. So where does MCP fit? It is a standard way to ship those tools, not a replacement for the idea.
What Function Calling Is
With function calling, you define each tool inline in your own API request to the model, and your code runs whatever the model picks.
tools = [{
"name": "get_weather",
"input_schema": {"type": "object"}
}]Tools Live in Your App
In plain function calling, the tool list and the code that runs them both live inside your one app. Nothing is shared with anyone else.
MCP Moves Tools Out
MCP takes those tools and puts them behind a separate server. Any MCP-aware app can connect and use them without copying your code.
Reusable Across Apps
The big win is reuse: write a tool once as an MCP server, and Claude Desktop, an IDE, or your own agent can all share it.
Function Calling Is Per-Request
Function calling ships the tool schemas in every request. It is simple and direct, but each app must carry its own copy of every tool.
MCP Is Discoverable
An MCP client asks the server what it offers at connect time. Tools are discovered live, not hardcoded into each request.
tools = await session.list_tools()They Work Together
These are not rivals. Under the hood an MCP host often turns server tools into ordinary function-calling tools for the model to pick.
When Function Calling Wins
For a single app with a few private tools, plain function calling is lighter. No extra server, no transport, just your code.
When MCP Wins
Reach for MCP when the same capability must serve many clients, or when users plug your tools into apps you do not control.
The Mental Model
Think of function calling as a tool you carry in your pocket, and MCP as that tool published in a shop where anyone can pick it up.
Quick Check
Pick the clearest difference between MCP and plain function calling.
Recap
Function calling defines tools inline in one app; MCP publishes them as a reusable server. Same core idea, wider reach. Nice work! 🎉
Preguntas frecuentes
¿La lección «MCP frente a las llamadas a funciones» es gratis?
Sí — el texto completo de «MCP frente a las llamadas a funciones» es gratis para leer aquí en la web. Para practicarla de forma interactiva (editor de código integrado y tutor de IA 24/7) y desbloquear el resto del curso de MCP Academy, actualiza a CoddyKit PRO. El curso de MCP Academy incluye 4 lecciones en total.
¿Qué aprenderé en «MCP frente a las llamadas a funciones»?
Cómo se diferencia MCP de las llamadas directas a herramientas del modelo. Practicas MCP Academy con código real que ejecutas directamente en el navegador, y un tutor de IA 24/7 responde tus preguntas mientras trabajas en la lección.
¿Necesito experiencia previa para empezar MCP Academy?
No se requiere experiencia previa. MCP Academy en CoddyKit está estructurado para principiantes hasta estudiantes avanzados, así que puedes empezar aquí o desde el inicio y avanzar a tu ritmo. Esta es la lección 1 de 4.
¿Cuánto tiempo toma la lección «MCP frente a las llamadas a funciones»?
La mayoría de las lecciones de CoddyKit toman alrededor de 5–10 minutos. Cada una es compacta e interactiva, así que avanzas constantemente y retomas exactamente por donde dejaste en la web y la app.
¿Puedo escribir y ejecutar código en esta lección de MCP Academy?
Sí. Cada lección de MCP Academy incluye un editor de código integrado, así que escribes y ejecutas código real directamente en tu navegador y obtienes retroalimentación instantánea de IA — sin configuración local necesaria.
Todas las lecciones de este curso
- MCP frente a las llamadas a funciones
- MCP dentro de frameworks de agentes
- De agente a agente con A2A
- Hacia dónde se dirige MCP