Get Prompt
get_promptRetrieve a rendered prompt from the connected MCP server by providing its name and arguments, returning the formatted prompt messages.
Instructions
Get a rendered prompt from the connected MCP server.
Retrieves a prompt by name with the provided arguments and returns the rendered prompt messages.
Returns: Dictionary with rendered prompt including: - success: True if prompt was retrieved successfully - prompt: Object with name, description, and rendered messages - metadata: Request timing and server information
Raises: Returns error dict for various failure scenarios: - not_connected: No active connection - prompt_not_found: Prompt doesn't exist on server - invalid_arguments: Arguments don't match prompt schema - execution_error: Prompt retrieval failed
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>",
"arguments": "<arguments>"
},
"name": "get_prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Name of the prompt to retrieve | |
| arguments | Yes | Dictionary of arguments to pass to the prompt |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||