Skip to main content
Glama

promote_prompt

Copy a prompt from one environment to another, automatically creating or updating the target. Returns both source and target version IDs for tracking.

Instructions

Copy a prompt from one environment to another and create or update the target automatically. Use this for staged releases when you want the target prompt synchronized without manual edits, and it returns both source and target version ids.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
source_prompt_idYesSource prompt ID or slug (e.g., staging prompt)
target_collection_idYesTarget collection ID for the promoted prompt
target_nameNoTarget prompt name (defaults to source name with env suffix replaced)
target_envYesEnvironment identifier (REQUIRED). Use your environment name, for example 'dev', 'staging', 'prod', or 'qa'.
virtual_keyNoVirtual key ID to use (defaults to source prompt's virtual_key)

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
okYesWhether the tool call succeeded and returned structured data
dataNoStructured success payload when ok is true
errorNoStructured error payload when ok is false
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Annotations already indicate mutation (readOnlyHint false) and non-destructiveness, and the description adds that it creates or updates the target and returns version IDs. However, given openWorldHint true, the description does not disclose potential side effects or required permissions, leaving some behavioral gaps.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is concise—just two sentences—with no extraneous information. It front-loads the primary action and then provides usage guidance, making it efficient and easy to scan.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the tool's 5 parameters and mutation nature, the description covers core purpose, usage context, and return values. It does not mention error conditions or prerequisites, but the presence of a (presumed) output schema reduces the need for full detail. Overall, it is fairly complete for the use case.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

All 5 parameters have descriptions in the schema (100% coverage), so the description adds minimal extra parameter-level detail. It mentions return values (version IDs) but not parameter specifics, warranting the baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action: copy a prompt between environments and auto-create/update the target. It explicitly distinguishes itself by mentioning staged releases and synchronization without manual edits, which sets it apart from siblings like create_prompt, update_prompt, and migrate_prompt.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description provides clear when-to-use context: for staged releases when automated synchronization is desired. However, it does not explicitly state when not to use this tool or compare it to alternatives like migrate_prompt, which is present among siblings.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

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