Skip to main content
Glama

Get Traces Dashboard Metrics

lyzr_get_traces_dashboard
Read-onlyIdempotent

Retrieve aggregate dashboard metrics across traces (credits, spans, tokens, latency, error rate) with optional filters for agent, session, customer, user, or time interval.

Instructions

Fetch aggregate dashboard metrics (credits, traces, spans, tokens, latency, error rate) across traces, optionally filtered.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
agent_idNoFilter by agent ID
end_timeNoFilter traces before this time (ISO 8601 date-time)
session_idNoFilter by session ID
start_timeNoFilter traces after this time (ISO 8601 date-time)
customer_idNoFilter by customer ID
query_user_idNoFilter by user ID
Behavior3/5

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

Annotations already declare read-only, idempotent, and non-destructive behavior. The description adds aggregation scope and metric types, but it does not disclose response structure, default time windows, or pagination, which would add further context.

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?

A single sentence, front-loaded with the verb 'Fetch' and the resource, lists key metrics and notes optional filtering. No redundant words or filler.

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?

For a read-only aggregation tool with optional filters, the description covers purpose and metric scope, sufficient for basic selection. However, it lacks explicit usage guidance and response format details, given there is no output schema.

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 six filter parameters. The description adds only that filtering is optional, providing minimal additional semantic value beyond the schema.

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 clearly states the tool fetches aggregate dashboard metrics, enumerating the metric types (credits, traces, spans, tokens, latency, error rate). This specific verb-resource pairing distinguishes it from trace-listing tools by emphasizing aggregation.

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

Usage Guidelines3/5

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

No explicit when-to-use guidance or alternatives are provided. 'Optionally filtered' implies flexible usage, but the description does not tell the agent when to prefer this over related tools like lyzr_list_traces or lyzr_ops_get_dashboard.

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/nandanNM/lyzr-mcp'

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