Execute Prompt With Llm
execute_prompt_with_llmFetch an MCP prompt, fill template variables, and run it through an LLM to get the response.
Instructions
Execute a prompt with an LLM and return the response.
This tool performs the complete workflow:
Retrieves the prompt from the connected MCP server with prompt_arguments
Optionally fills template variables in the prompt messages
Sends the prompt messages to an LLM
Returns the LLM's response along with metadata
Supports two prompt patterns:
Standard MCP prompts: Pass arguments via prompt_arguments, server handles substitution
Template variables: Use fill_variables to replace {variable} placeholders in messages
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| llm_config | No | LLM configuration (url, model, api_key, etc.) | |
| prompt_name | Yes | Name of the prompt to execute | |
| fill_variables | No | Template variables to fill in prompt messages (JSON object or string) | |
| prompt_arguments | No | Arguments to pass to the MCP prompt (JSON object or string) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||