🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← 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?

  1. A.You must always write the JSON schema by hand
  2. B.The function's type hints (and its docstring gives the description)
  3. C.The model guesses it
  4. 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 →