Skip to main content
Glama
avivsinai

langfuse-mcp

fetch_observations

Retrieve Langfuse observations by type, time range, and filters like name or user ID for debugging and analysis of LLM applications.

Instructions

Get observations filtered by type and other criteria.

Args: ctx: Context object containing lifespan context with Langfuse client type: The observation type to filter by (SPAN, GENERATION, or EVENT) age: Minutes ago to start looking (e.g., 1440 for 24 hours) name: Optional name filter (string pattern to match) user_id: Optional user ID filter (exact match) trace_id: Optional trace ID filter (exact match) parent_observation_id: Optional parent observation ID filter (exact match) page: Page number for pagination (starts at 1) limit: Maximum number of observations to return per page output_mode: Controls the output format and detail level Returns: Based on output_mode: - compact: List of summarized observation objects - full_json_string: String containing the full JSON response - full_json_file: List of summarized observation objects with file save info

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
typeNoThe observation type to filter by ('SPAN', 'GENERATION', or 'EVENT')
ageYesMinutes ago to start looking (e.g., 1440 for 24 hours)
nameNoOptional name filter (string pattern to match)
user_idNoOptional user ID filter (exact match)
trace_idNoOptional trace ID filter (exact match)
parent_observation_idNoOptional parent observation ID filter (exact match)
pageNoPage number for pagination (starts at 1)
limitNoMaximum number of observations to return per page
output_modeNoControls the output format and action. 'compact' (default): Returns a summarized JSON object optimized for direct agent consumption. 'full_json_string': Returns the complete, raw JSON data serialized as a string. 'full_json_file': Returns a summarized JSON object AND saves the complete data to a file.compact

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