Skip to main content
Glama
Log-LogN

langfuse-mcp-java

create_model

Define custom models for cost tracking and token pricing by specifying model names, regex patterns, pricing units, and optional per-unit USD prices.

Instructions

Creates a custom model definition for cost tracking and token pricing. modelName, matchPattern, and unit are required. unit values: TOKENS | CHARACTERS | MILLISECONDS | SECONDS | IMAGES | REQUESTS. Prices are per unit in USD (e.g. inputPrice=0.000001 means $1 per million tokens). Omit prices for models where you do not want cost tracking. startDate format: ISO-8601 date, e.g. 2025-01-01T00:00:00Z.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
modelNameYesModel name used for display and matching. Required.
matchPatternYesRegex pattern to match against generation model names. Required.
unitYesPricing unit: TOKENS | CHARACTERS | MILLISECONDS | SECONDS | IMAGES | REQUESTS. Required.
inputPriceYesInput price per unit in USD. Omit if not tracking input cost.
outputPriceYesOutput price per unit in USD. Omit if not tracking output cost.
totalPriceYesTotal price per unit in USD (alternative to input/output split). Omit if using input/output prices.

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