add-prompt-version-tag
Tag a prompt version with a specific identifier to manage and track iterations effectively. Use the tool to assign names like 'production' to versions for clear organization and version control within the MCP server.
Instructions
Add a tag to a specific prompt version. The operation returns no content on success (204 status code).
Example usage: Tag prompt version 'promptversionid1234' with the name 'production'
Expected return: Confirmation message of successful tag addition
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| description | No | ||
| name | Yes | ||
| prompt_version_id | Yes |
Implementation Reference
- Registration and handler implementation for the 'add-prompt-version-tag' tool. It uses the PhoenixClient to POST a new tag to the specified prompt version and returns a success message.server.tool( "add-prompt-version-tag", ADD_PROMPT_VERSION_TAG_DESCRIPTION, addPromptVersionTagSchema.shape, async ({ prompt_version_id, name, description }) => { await client.POST("/v1/prompt_versions/{prompt_version_id}/tags", { params: { path: { prompt_version_id, }, }, body: { name, description, }, }); return { content: [ { type: "text", text: `Successfully added tag "${name}" to prompt version ${prompt_version_id}`, }, ], }; } );
- Zod input schema defining parameters for the 'add-prompt-version-tag' tool: prompt_version_id (required string), name (required string), description (optional string).export const addPromptVersionTagSchema = z.object({ prompt_version_id: z.string(), name: z.string(), description: z.string().optional(), });