Skip to main content
Glama
Log-LogN

langfuse-mcp-java

update_prompt_labels

update_prompt_labels
Destructive

Replace labels on a specific prompt version in Langfuse to organize and categorize prompt management.

Instructions

Replaces the labels on a specific prompt version. newLabels completely replaces the existing label set on that version. The 'latest' label is reserved and managed by Langfuse — do not include it. Both promptName and version are required. newLabels is required — supply an empty string to remove all labels from this version.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
promptNameYesPrompt name (exact match). Required.
versionYesVersion number to update. Required.
newLabelsYesComma-separated new labels, e.g. production,staging. Supply empty string to remove all labels.
Behavior4/5

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

Annotations mark this as destructive (destructiveHint=true), but description adds critical context: 'completely replaces the existing label set' (clarifies replacement vs append semantics) and the reserved 'latest' label warning. Also explains empty string behavior for removal.

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?

Five sentences front-loaded with purpose statement. Every sentence adds distinct value: purpose, replacement semantics, reserved label warning, required fields clarification, and empty string behavior. Zero waste.

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?

With destructive annotations, 100% schema coverage, and no output schema, the description adequately covers the operation's scope, constraints, and side effects. Missing only error handling details (e.g., prompt not found), which is minor.

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?

Schema coverage is 100% with all parameters well-documented. Description reinforces required status and empty string behavior, but primarily mirrors schema content. Baseline 3 is appropriate when schema carries the descriptive burden.

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?

Clear specific verb ('Replaces') with resource ('labels') and scope ('specific prompt version'). Distinguishes from sibling tools like create_prompt (creates new prompts), delete_prompt (removes prompts), and get_prompt (retrieves) by focusing specifically on label management for existing versions.

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?

Provides explicit constraints: 'The 'latest' label is reserved and managed by Langfuse — do not include it' (when-not guidance) and 'supply an empty string to remove all labels' (special usage pattern). Lacks explicit comparison to alternatives like create_prompt, but provides clear operational constraints.

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/Log-LogN/langfuse-mcp-java'

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