45.1 Comparison Matrix
| Feature | Function Calling | MCP | Custom Plugin Architecture |
|---|---|---|---|
| Standard | Provider-specific (OpenAI, Anthropic, etc.) | Open protocol | Custom per platform |
| Discovery | Defined per API call | Dynamic discovery | Registry-based |
| Reusability | Per-application | Cross-application | Per-platform |
| Transport | HTTP API | stdio / HTTP+SSE | Varies |
| State | Stateless | Can be stateful | Varies |
| Security model | API-key based | Host-controlled consent | Platform-controlled |
| Best for | Simple tool use in a single chat app | Platform-level, cross-application integration | Enterprise-specific extension ecosystems |
45.2 When to Use Each
Function calling — simple, few tools (<10), single application, quick prototyping, no cross-application sharing needed, tools change frequently during development.
MCP — many integrations (10+ external systems), multiple AI applications sharing the same tools, want tool definitions maintained by the tool/system owner rather than every AI app team, building a platform or ecosystem, need provider portability (not locked to one model vendor’s tool-calling format).
Custom plugin architecture — need custom security/sandboxing beyond what MCP hosts provide out of the box, specific lifecycle-management requirements (canary rollout, versioned deprecation cycles tied to your own release process), or heavy platform-specific requirements that don’t map cleanly onto MCP’s primitives.
Hybrid approach (common in practice): use function calling at the model API level, but implement the function handlers as calls into MCP servers. This gets provider compatibility (the model sees a standard tool-call interface) plus MCP’s reusability (the underlying implementation is a shared, standardized server).
Section 45 — Interview Q&A
Q1: Explain MCP and how it differs from function calling. When would you use each? Function calling is defined per API request — tight coupling between application and model, tools are ephemeral and app-specific, best for simple single-application integrations. MCP is a standardized, open protocol with loose coupling — any MCP client can connect to any MCP server, tools are discoverable (servers advertise their own capabilities), and connections are persistent with real lifecycle management. Use MCP when building a platform with multiple applications sharing tools, integrating many external systems, wanting tool ownership to live with the system owner, or building a plugin/extension ecosystem. Use plain function calling for a single application with few tools and fast iteration.
Q2: Compare MCP to OpenAI-style function calling directly — when would you recommend each to a client? Recommend function calling when building a single AI application with fewer than ~10 tools, using primarily one model provider, needing fastest time to market, and where tools are genuinely application-specific with no reuse case. Recommend MCP when building an AI platform serving multiple applications, integrating 10+ enterprise systems, wanting a reusable integration library maintained centrally, needing multi-provider portability, or when the client’s own engineering teams will build and own their own integrations going forward. In practice, the two aren’t mutually exclusive — see the hybrid pattern above.
Q3: When would you build a custom plugin architecture instead of adopting MCP outright? When you need security/sandboxing guarantees MCP hosts don’t provide by default (e.g., WASM-level isolation per plugin), when your lifecycle-management needs are tightly coupled to your own release process (staged rollout gates tied to internal compliance sign-off), or when the platform predates MCP and migrating wholesale isn’t justified by the benefit. Even then, it’s common to expose the custom plugin system’s capabilities through an MCP server as a compatibility layer, so external MCP-aware clients can still discover and use them.