Skip to main content
Glama
avivsinai

langfuse-mcp

update_prompt_labels

Update labels for a specific prompt version, adding provided labels while preserving existing ones. Labels are unique across versions, and the 'latest' label is managed by Langfuse.

Instructions

Update labels for a specific prompt version.

This is the only supported mutation for existing prompts. Provided labels are added to the version (existing labels are preserved). Labels are unique across versions, and the 'latest' label is managed by Langfuse.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesThe name of the prompt to update
versionYesThe prompt version to update
labelsYesLabels to add to this version (can be empty to add none). Existing labels are preserved; labels are unique across versions.

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Behavior4/5

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

With no annotations, the description carries the full burden. It discloses that labels are added (not replaced), are unique across versions, and that the 'latest' label is managed by Langfuse. This provides valuable behavioral context beyond the schema. Could mention idempotency or behavior on duplicate labels.

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?

Three sentences, each providing essential information without redundancy. The verb and resource are front-loaded, and every sentence earns its place.

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?

For a simple tool with three straightforward parameters and an output schema, the description covers the key behaviors: additive labels, uniqueness, and Langfuse-managed 'latest'. It could add a note about idempotency but is largely complete.

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

Parameters4/5

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

Even with 100% schema coverage, the description adds meaning: 'Provided labels are added to the version (existing labels are preserved)' and 'Labels are unique across versions'. This clarifies the behavior of the labels parameter beyond the schema's description.

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?

Clearly states the verb 'Update' and the resource 'labels for a specific prompt version'. It also distinguishes this as the only supported mutation for existing prompts, setting it apart from sibling tools like create_chat_prompt or create_text_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?

Explicitly states it is the only supported mutation for existing prompts, providing context for when to use it. However, it does not explicitly list when not to use it or name alternative tools for other operations.

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/avivsinai/landfuse-mcp'

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