Prompts User Guide
These guides cover declaring prompts on an MCP server and controlling the conversation a prompt inserts. Start with Getting started if you have not registered a prompt yet.
Guides
| Guide | Scope | API starting points |
|---|---|---|
| Defining prompts | Registration, the fluent builder, required and optional arguments, names, titles and icons, runtime listing through OnListPrompts, and list-changed notifications. |
TTMSMCPPrompt, TTMSMCPPrompts, TTMSMCPPromptBuilder |
| Prompt messages | Reading positional arguments, the user and assistant roles, content type, ownership of the returned collection, multi-turn openings, and argument-value completion. | TTMSMCPPromptMessages, TTMSMCPPromptMessage, TTMSMCPPromptArgument |
Related components
- MCP Server owns the
Promptscollection and answersprompts/listandprompts/get, and it is where completions and list-changed notifications are switched on. - Attributes generates the same prompt surface from RTTI attributes, so a plain Delphi method becomes a prompt without explicit registration.
- Tools exposes callable operations the model chooses, and Resources exposes readable content by URI — the other two things a server advertises alongside prompts.