0Pricing
MCP Academy · Lesson

Field Descriptions That Guide the Model

Document each field so the AI fills it correctly.

The Model Reads Your Fields

Each field's name and description are shown to the AI. A good description is your chance to tell the model exactly what to put there.

Add a Description

Pass description to Field to attach a human sentence that travels with the schema all the way to the client.

city: str = Field(description="City name, e.g. Paris")

All lessons in this course

  1. Why Schemas Beat Loose Args
  2. Model Inputs with Pydantic
  3. Constraints, Defaults & Enums
  4. Field Descriptions That Guide the Model
← Back to MCP Academy