Skip to main content
Glama
Log-LogN

langfuse-mcp-java

create_dataset

create_dataset
Destructive

Create a new dataset in Langfuse to organize and structure evaluation data for LLM applications. Define schemas for inputs and expected outputs, add metadata, and manage datasets for observability and analysis.

Instructions

Creates a new dataset in Langfuse. name is required. description is optional. metadataJson, inputSchemaJson, and expectedOutputSchemaJson must be valid JSON when provided. Returns the created dataset definition.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesDataset name. Required.
descriptionYesOptional dataset description.
metadataJsonYesOptional metadata object as JSON.
inputSchemaJsonYesOptional JSON Schema for item inputs, encoded as JSON.
expectedOutputSchemaJsonYesOptional JSON Schema for expected outputs, encoded as JSON.
Behavior3/5

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

Adds validation constraints not in annotations ('must be valid JSON') and discloses return value ('Returns the created dataset definition'). Annotations already establish destructive/mutable nature; description doesn't elaborate on openWorld implications or error conditions like name conflicts.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Five short sentences with minimal waste. Front-loaded with primary action. Slight redundancy with schema on required/optional status, but efficiently packs JSON validation requirements and return value info.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Adequate for a 5-parameter creation tool with strong schema coverage and annotations. Mentions return value (compensating for missing output schema). Missing: error handling (duplicate names), side effect details, or relationship to dataset item operations.

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?

With 100% schema coverage, baseline is 3. Description adds crucial behavioral constraint that three JSON parameters require valid JSON syntax ('must be valid JSON when provided'), which schema field descriptions don't specify. Redundant on required/optional status.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Clear verb ('Creates') and resource ('dataset') with scope ('in Langfuse'). Effectively distinguishes from siblings like create_dataset_item (creates items within datasets) and list_datasets (read operation).

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides parameter-level guidance (required vs optional) but lacks tool-level usage guidance: no mention of when to create new datasets versus using existing ones (via get_dataset/list_datasets), or prerequisite relationships to create_dataset_item.

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