Skip to main content
Glama

get_traces

Fetch traces from Langfuse analytics with flexible filtering by time, cost, user, tags, and environment to analyze usage patterns and performance.

Instructions

Fetch traces with flexible filtering options.

Input Schema

NameRequiredDescriptionDefault
fromNoStart timestamp (ISO 8601)
toNoEnd timestamp (ISO 8601)
limitNoMaximum number of traces to return (default: 25)
orderByNoField to order by (default: timestamp)
orderDirectionNoOrder direction (default: desc)
userIdNoFilter by user ID
nameNoFilter by trace name (substring match)
tagsNoFilter by tags
environmentNoFilter by environment
minCostNoMinimum cost filter
maxCostNoMaximum cost filter

Input Schema (JSON Schema)

{ "properties": { "environment": { "description": "Filter by environment", "type": "string" }, "from": { "description": "Start timestamp (ISO 8601)", "format": "date-time", "type": "string" }, "limit": { "description": "Maximum number of traces to return (default: 25)", "maximum": 100, "minimum": 1, "type": "number" }, "maxCost": { "description": "Maximum cost filter", "type": "number" }, "minCost": { "description": "Minimum cost filter", "type": "number" }, "name": { "description": "Filter by trace name (substring match)", "type": "string" }, "orderBy": { "description": "Field to order by (default: timestamp)", "enum": [ "timestamp", "totalCost", "totalTokens" ], "type": "string" }, "orderDirection": { "description": "Order direction (default: desc)", "enum": [ "asc", "desc" ], "type": "string" }, "tags": { "description": "Filter by tags", "items": { "type": "string" }, "type": "array" }, "to": { "description": "End timestamp (ISO 8601)", "format": "date-time", "type": "string" }, "userId": { "description": "Filter by user ID", "type": "string" } }, "type": "object" }

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/therealsachin/langfuse-mcp-server'

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