Skip to main content

Prompts

List and render prompts from MCP servers
Prompts 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:
Note: MCP prompt arguments are strings. If a server expects structured input (lists/dicts), it will usually ask you to pass a JSON string and parse it server-side.

Response structure

A rendered prompt returns a GetPromptResult: Each message has a role and a content block. Many prompts return text content; some may return non-text content blocks.

Example: Code assistant

Prompts without arguments

Some prompts don’t require arguments:

Context manager

Last modified on June 30, 2026