← Quiz: Model Context Protocol (MCP): all 10 questions
Quiz: Model Context Protocol (MCP) · Question 8 of 10
In FastMCP, where does a tool's input schema come from?
In FastMCP, where does a tool's input schema come from?
- A.You must always write the JSON schema by hand
- B.The function's type hints (and its docstring gives the description)
- C.The model guesses it
- D.The name of the Python file
Answer & explanation
Correct answer: The function's type hints (and its docstring gives the description)
For example, roll: int becomes an integer property in the schema.
Can you get the rest right without peeking?
Take the timed Quiz: Model Context Protocol (MCP) quiz free. Pass it to earn XP and count towards your certificate.
Start the quiz →