Skip to main content
Glama

langfuse_search_traces

Search and filter Langfuse traces by text, release, cost, latency, and other criteria to debug AI agent sessions and analyze performance.

Instructions

[Langfuse] Search and filter traces with extended criteria including text search, release, cost range, and latency range. Combines API-level and client-side filtering.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryNoText search query (matches trace name, ID, user ID, session ID, or tags)
nameNoFilter by trace name (API-level)
user_idNoFilter by user ID
session_idNoFilter by session ID
tagsNoFilter by tags
releaseNoFilter by release (client-side)
min_costNoMinimum total cost (client-side filter)
max_costNoMaximum total cost (client-side filter)
min_latencyNoMinimum latency in seconds (client-side filter)
max_latencyNoMaximum latency in seconds (client-side filter)
from_timestampNoFilter traces starting after this timestamp (ISO format or YYYY-MM-DD)
to_timestampNoFilter traces starting before this timestamp (ISO format or YYYY-MM-DD)
limitNoMaximum number of results (default: 50)
pageNoPage number (1-indexed, default: 1)
Behavior2/5

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

With no annotations provided, the description carries the full burden of behavioral disclosure. It mentions filtering capabilities but lacks critical details: it doesn't specify if this is a read-only operation (likely, but not stated), whether it has pagination behavior (implied by 'limit' and 'page' parameters but not described), rate limits, authentication needs, or what the output format looks like (no output schema). The description adds some context about API vs. client-side filtering but misses essential behavioral traits.

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?

The description is appropriately concise with two sentences. The first sentence clearly states the purpose and key criteria, and the second adds context about filtering types. There's no wasted text, and it's front-loaded with essential information. A perfect score would require more comprehensive guidance without sacrificing brevity.

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

Completeness2/5

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

Given the complexity (14 parameters, no annotations, no output schema), the description is incomplete. It adequately explains what the tool does but fails to provide sufficient context on usage guidelines, behavioral aspects like pagination or safety, and output expectations. For a search tool with many parameters and no structured output information, more detail is needed to help an agent 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?

The description adds minimal parameter semantics beyond the schema. It lists examples of criteria (text search, release, cost range, latency range) which are covered in the schema descriptions. With 100% schema description coverage, the baseline is 3, as the schema already documents all 14 parameters thoroughly. The description doesn't provide additional syntax, format details, or usage examples for parameters.

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: 'Search and filter traces with extended criteria including text search, release, cost range, and latency range.' It specifies the verb (search/filter) and resource (traces) with examples of criteria. However, it doesn't explicitly differentiate from sibling tools like 'langfuse_list_traces' or 'langfuse_search_sessions,' which would be needed for a perfect score.

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 minimal usage guidance. It mentions that it 'combines API-level and client-side filtering,' which hints at its capabilities but doesn't specify when to use this tool versus alternatives like 'langfuse_list_traces' (which might be for simpler listing) or 'langfuse_search_sessions' (for different resources). No explicit when-to-use or when-not-to-use scenarios are provided.

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/neuralis-in/shepherd-mcp'

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