Skip to main content
Glama
Arize-ai

@arizeai/phoenix-mcp

Official
by Arize-ai

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
NameRequiredDescriptionDefault
descriptionNo
nameYes
prompt_version_idYes

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(), });

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/Arize-ai/phoenix'

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