Skip to main content
Glama
Log-LogN

langfuse-mcp-java

get_error_count

get_error_count
Destructive

Count ERROR-level traces in Langfuse to monitor application health and identify issues within a specified time range.

Instructions

Returns the total count of ERROR-level traces within the specified time range.

The server scans up to 500 traces (5 pages of 100) and counts those with level=ERROR. The response contains errorCount, fromTimestamp, and toTimestamp.

Both time range parameters are optional. Omit them to count errors across all time. Use this for a quick health signal before drilling into individual traces with find_exceptions.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fromTimestampYesStart of time range in ISO-8601 format, e.g. 2025-06-01T00:00:00Z. Omit to count from the beginning of the project.
toTimestampYesEnd of time range in ISO-8601 format, e.g. 2025-06-30T23:59:59Z. Omit to count up to the current time.
Behavior3/5

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

Adds valuable behavioral context not in annotations: the 500-trace scan limit and response structure (errorCount, timestamps). However, fails to explain why the tool is marked destructiveHint:true and readOnlyHint:false, which is confusing given the 'get'/read-oriented description.

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?

Five sentences with zero waste: purpose first, then implementation limits, response format, parameter optionality, and usage guidance. Front-loaded and efficiently structured.

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

Completeness4/5

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

Comprehensive coverage including scan limits, response contents (compensating for missing output schema), and parameter behavior. Minor gap: does not clarify the destructive nature of the operation or potential rate limits.

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 has 100% coverage (baseline 3). The description adds important semantic detail that parameters are optional and can be omitted for all-time counts, though this appears to contradict the schema's 'required' field.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description opens with a clear specific verb ('Returns') and resource ('ERROR-level traces'), and explicitly distinguishes from sibling tool 'find_exceptions' by stating this is for 'quick health signal' before drilling into individual traces with that alternative.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides explicit guidance on when to use ('quick health signal') versus when to use the alternative ('drilling into individual traces with find_exceptions'). Also clarifies parameter optionality behavior ('Omit them to count errors across all time').

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/Log-LogN/langfuse-mcp-java'

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