Skip to main content
Glama

create_prompt

Create versioned prompt templates with variable substitution for AI models in Portkey. Define templates with mustache syntax, set default parameters, and organize in collections.

Instructions

Create a new prompt template in Portkey. Prompts are versioned message templates with variable substitution support.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDisplay name for the prompt
collection_idYesCollection ID to organize the prompt in (use list_collections to find)
stringYesPrompt template string with {{variable}} mustache syntax
parametersYesDefault values for template variables
virtual_keyYesVirtual key slug for model access
modelNoModel identifier (e.g., 'gpt-4', 'claude-3-opus')
version_descriptionNoDescription for this prompt version
template_metadataNoCustom metadata (app, env, source_file, etc.)
functionsNoFunction definitions for function calling
toolsNoTool definitions for tool use
tool_choiceNoTool choice strategy
dry_runNoWhen true, validate without creating

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/s-b-e-n-s-o-n/portkey-admin-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server