Skip to main content
Glama
avivsinai

langfuse-mcp

fetch_traces

Filter and retrieve traces from Langfuse observability platform by age, name, user ID, session ID, metadata, or tags for debugging and analysis of LLM applications.

Instructions

Find traces based on filters. All filter parameters are optional.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
ageYesMinutes ago to start looking (e.g., 1440 for 24 hours)
nameNoName of the trace to filter by
user_idNoUser ID to filter traces by
session_idNoSession ID to filter traces by
metadataNoMetadata fields to filter by
pageNoPage number for pagination (starts at 1)
limitNoMaximum number of traces to return per page
tagsNoTag or comma-separated list of tags to filter traces by
include_observationsNoIf True, fetch and include the full observation objects instead of just IDs. Use this when you need access to system prompts, model parameters, or other details stored within observations. Significantly increases response time but provides complete data.
output_modeNoControls the output format: 'compact' (default) returns summarized JSON, 'full_json_string' returns complete raw JSON as string, 'full_json_file' saves complete data to file and returns summary with path.compact

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
resultYes
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions that filters are optional but doesn't describe key behaviors: whether this is a read-only operation, if it has rate limits, what the output looks like (though an output schema exists), or any performance implications (e.g., pagination details beyond schema). The description is too sparse for a tool with 10 parameters and no annotation support.

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

Conciseness5/5

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

The description is extremely concise—just two sentences—and front-loaded with the core purpose. Every word earns its place, with no wasted text. It efficiently communicates the essential information without unnecessary elaboration.

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?

Given the tool's complexity (10 parameters, 1 required) and the presence of an output schema, the description is minimally adequate. The output schema reduces the need to explain return values, but the description lacks context on behavioral traits (e.g., read-only nature, performance) and usage guidelines. It meets a bare minimum but leaves gaps for an agent to understand when and how to use it effectively.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema already documents all parameters thoroughly. The description adds minimal value beyond the schema by stating 'All filter parameters are optional,' which clarifies that filters can be omitted, but this is somewhat redundant since the schema shows defaults and optionality. No additional parameter semantics are provided in the description.

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?

The description clearly states the tool's purpose: 'Find traces based on filters.' It specifies the verb ('find') and resource ('traces'), and mentions that all filter parameters are optional, which adds useful context. However, it doesn't explicitly differentiate this tool from its sibling 'fetch_trace' (singular), which appears to fetch a single trace rather than multiple traces with filtering.

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?

The description provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'fetch_trace' (for single traces) or 'fetch_sessions' (which might relate to traces), nor does it specify prerequisites or exclusions. The only usage hint is that filters are optional, which is minimal guidance.

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/avivsinai/landfuse-mcp'

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