MCP Academy · Lesson

Shape Messages & Preferences

Set system text and model hints for the call.

You Steer the Generation

Beyond the prompt, you can shape the call: a system prompt, model hints, length, and how much past context to include.

Set the System Prompt

Use systemPrompt to set the model’s role or tone for this one call, like telling it to be a terse code reviewer.

"systemPrompt": "You are a concise code reviewer."

All lessons in this course

  1. What Sampling Unlocks
  2. Request a Completion from the Host
  3. Shape Messages & Preferences
  4. Human-in-the-Loop Approval
← Back to MCP Academy