MCP versus chamada de funções
Como o MCP difere das chamadas diretas de ferramentas do modelo.
MCP versus chamada de funções é uma aula grátis de MCP Academy no CoddyKit. Esta é a aula 1 de 4. Você pode ler a aula completa abaixo gratuitamente — depois pratica ao vivo no navegador com um editor de código integrado e um tutor de IA 24/7. Faz parte do caminho de aprendizado de MCP Academy, e seu progresso é sincronizado entre a web e o app CoddyKit. O curso de MCP Academy inclui 4 aulas no total.
Partes desta aula ainda não foram traduzidas e aparecem em 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! 🎉
Perguntas Frequentes
A aula “MCP versus chamada de funções” é grátis?
Sim — o texto completo de “MCP versus chamada de funções” é grátis para ler aqui na web. Para praticá-la interativamente (um editor de código integrado e um tutor de IA 24/7) e desbloquear o restante do curso de MCP Academy, atualize para CoddyKit PRO. O curso de MCP Academy inclui 4 aulas no total.
O que vou aprender em “MCP versus chamada de funções”?
Como o MCP difere das chamadas diretas de ferramentas do modelo. Você pratica MCP Academy com código prático que executa diretamente no navegador, e um tutor de IA 24/7 responde suas dúvidas enquanto trabalha na aula.
Preciso ter experiência prévia para começar MCP Academy?
Nenhuma experiência prévia é necessária. MCP Academy no CoddyKit é estruturado para alunos iniciantes até avançados, então você pode começar aqui ou desde o início e aprender no seu ritmo. Esta é a aula 1 de 4.
Quanto tempo leva a aula “MCP versus chamada de funções”?
A maioria das aulas CoddyKit leva cerca de 5–10 minutos. Cada uma é compacta e interativa, então você faz progresso constante e retoma exatamente de onde parou entre web e app.
Posso escrever e executar código nesta aula de MCP Academy?
Sim. Cada aula de MCP Academy inclui um editor de código integrado, então você escreve e executa código real direto no navegador e recebe feedback de IA instantaneamente — nenhuma configuração local necessária.
Todas as aulas deste curso
- MCP versus chamada de funções
- MCP em estruturas de agentes
- De agente para agente com A2A
- O futuro do MCP