Prompts
List and render prompts from MCP serversPrompts are reusable message templates exposed by the server. A prompt can accept string-valued arguments and returns a sequence of messages you can feed into an LLM conversation. If you’re new to this: think of a prompt as a pre-written chat script stored on the server (like “summarize” or “code review”). Your client can list the available scripts, then render one into actual messages (optionally filling in arguments like
"language": "python").
List prompts
Discover available prompts:Prompt schema
Each prompt includes:Get a prompt
Render a prompt with arguments:Response structure
A rendered prompt returns aGetPromptResult:
Each message has a
role and a content block. Many prompts return text content; some may return non-text content blocks.
