Adding a Prompt to a Provider
APrompt acts as a pre-constructed set of instructions or templates that any connected MCP server can utilize to standardize interactions.
Using REST API
To programmatically bind a new prompt instruction set to a provider, issue aPOST request with the ProviderPromptCreate payload.
POST /providers/{providerId}/prompts
JSON Payload Requirements
Your payload requires aprompt object composed of exactly 4 fields:
name(string): A distinct programmatic identifier.description(string, optional): Context clarifying when the LLM should use this prompt.arguments(object array): JSON array defining expected variables (e.g.,[{"name": "repo_name", "description": "Name of git repository", "required": true}]).messages(object array): JSON array mapping the template content (e.g.,[{"role": "user", "content": {"type": "text", "text": "Analyze the codebase for {repo_name}"}}]).