Grokking the Model Context Protocol (MCP)
Vote

0% completed

​

Tools: Input Schemas and Structured Output

The employee asks the assistant to add a taxi receipt of 42 dollars to the Berlin trip report. The model normally calls submit_expense with "amount": 42. Suppose that once, it sends "amount": "42 dollars" instead.

Four parts of the system could reject that call: the host before it sends the request, the SDK inside the server, the tool function, or the Costbook API that the function calls. Which one should do it?

The answer is the SDK, before the function runs, and in a form that the model can read and correct. That works only if the tool's schema states exactly what a valid call is

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content