# MCP Server & OpenAI Function Calling JSON Schema Complete Practical Guide

> **TL;DR**: Learn the exact structural differences between Model Context Protocol inputSchema and OpenAI tool definitions, plus how to validate LLM outputs at runtime with Zod.
> **Source**: https://ai.yevrix.com/articles/mcp-function-calling-json-schema-guide

## 1. MCP vs OpenAI Function Calling: What Actually Differs?

Both protocols rely on standard **JSON Schema Draft-07** objects (`type`, `properties`, `required`). The main difference is the outer wrapper:
- **MCP Server Tools**: Place the schema under `inputSchema`.
- **OpenAI Tool Calls**: Nest the schema under `function.parameters`.

## 2. Production MCP Tool Descriptor Example

...

> Full engineering guide unlocked at https://ai.yevrix.com/articles/mcp-function-calling-json-schema-guide
