Skip to main content
Glama
Log-LogN

langfuse-mcp-java

create_prompt

Create or update prompts for LLM applications by specifying text or chat formats, with version control and labeling for organization.

Instructions

Creates a new version of a prompt. If the prompt name does not exist, a new prompt is created. If it does exist, a new version is appended. type values: text (plain string prompt) | chat (array of message objects). For text prompts, provide prompt as a plain string. For chat prompts, provide prompt as a JSON array of message objects with role and content fields. labels examples: production, staging, latest. The 'latest' label is managed by Langfuse automatically. Returns the created prompt version with its assigned version number. name, type, and prompt are required.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesPrompt name. If it already exists, a new version is created. Required.
typeYesPrompt type: text | chat. Required.
promptYesPrompt content. Plain string for text type; JSON array of messages for chat type. Required.
labelsYesComma-separated labels to apply, e.g. production,staging. Omit to create without labels.
tagsYesComma-separated tags for organisation, e.g. summarisation,rag. Omit if no tags needed.

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