Skip to main content
The prompts/get method returns the fully rendered content of a prompt template. The server substitutes the provided argument values into the template and returns the result as a messages array ready to inject into a conversation.

MCP Endpoint

Request

string
required
Must be "2.0".
integer | string
required
Arbitrary request identifier echoed back unchanged in the response.
string
required
Must be "prompts/get".
string
required
The prompt template name to retrieve (e.g. "write_product_description"). Must match a name from prompts/list.
object
Key-value pairs for the prompt’s defined arguments. Required arguments must be included or the call returns a validation error.

Response

string
The prompt’s description as configured.
array
Array of message objects ready to inject into an AI conversation. Each message has:
  • role — Either "user" or "assistant"
  • content.type — Always "text" in the current implementation
  • content.text — The fully rendered prompt with all {{argument_name}} placeholders substituted

Request Parameters

string
required
The name of the prompt to retrieve. Must match a prompt name from prompts/list.
object
Key-value pairs to substitute into the prompt template. Required arguments (as defined in prompts/list) must be provided.