Skip to main content
Glama

migrate_prompt

Create or update prompts for CI/CD and prompt-as-code workflows by finding existing prompts by name and applying changes.

Instructions

Create or update a prompt based on whether it exists. Useful for CI/CD and prompt-as-code workflows. Finds existing prompts by name within the collection.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPrompt name to create or find for update
appYesApp identifier
envYesEnvironment
collection_idYesCollection ID to search in and create under
stringYesPrompt template string with {{variable}} mustache syntax
parametersYesDefault values for template variables
virtual_keyYesVirtual key slug for model access
modelNoModel identifier
version_descriptionNoDescription for this version
template_metadataNoAdditional custom metadata
functionsNoFunction definitions
toolsNoTool definitions
tool_choiceNoTool choice strategy
dry_runNoWhen true, only check what action would be taken without making changes

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