upsert-prompt
Create or update a prompt with its template, model settings, and configuration. Define model provider, temperature, and description to set up or revise prompt versions.
Instructions
Create or update a prompt with its template and configuration. Creates a new prompt and its initial version with specified model settings.
Example usage: Create a new prompt named 'email_generator' with a template for generating emails
Expected return: A confirmation message of successful prompt creation
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>",
"template": "<template>"
},
"name": "upsert-prompt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| template | Yes | ||
| model_name | No | gpt-4 | |
| description | No | ||
| temperature | No | ||
| model_provider | No | OPENAI |