MCP · Lesson 48 of 120
Practice: Support Prompts
Two templates.
Let's give Northwind's support team two prompts. An apology to a customer, and a summary of a long complaint. Each with clear arguments.

- Apology
- Summary
- Clear arguments
Two support prompts
Each prompt is a small function with clear arguments. We list them with their arguments, then get one. Run it. Two prompts, and a finished summary prompt.
support_prompts.pypython
import asyncio
from mcp import Client
from mcp.server.mcpserver import MCPServer
mcp = MCPServer("support")
@mcp.prompt()
def apology(customer: str, problem: str) -> str:
"""Draft an apology."""
return f"Write a sincere apology to {customer} about {problem}."
@mcp.prompt()
def summary(complaint: str) -> str:
"""Summarise a complaint in three bullet points."""
return f"Summarise in three bullet points:\n{complaint}"
async def main():
async with Client(mcp) as client:
print([(p.name, [a.name for a in p.arguments]) for p in (await client.list_prompts()).prompts])
print((await client.get_prompt("summary", {"complaint": "Bike late, wrong colour."})).messages[0].content.text)
asyncio.run(main())Output
[('apology', ['customer', 'problem']), ('summary', ['complaint'])]
Summarise in three bullet points:
Bike late, wrong colour.Summary
Small prompt functions give a team consistent, reusable templates. Next, the prompts quiz.
Key takeaways- Apology
- Summary
- Reusable
Next up: Prompts Quiz — test yourself