Function calling

Last verified

Function calling is the provider-level feature underneath tool use: you describe functions in a schema, the model returns a structured request to call one, your code executes it and returns the result.

MCP standardises the layer above this so tools are portable across clients, rather than wired per application.

Cost-wise they behave the same: definitions occupy context on every request, and results enter the conversation.