Skip to main content
Glama

Timeslice trend: counts over time per series (sparklines)

sumo_trend
Read-only

Visualize log message counts over time, segmented by log level, using a compact sparkline and per-bucket series to detect spikes and onsets. Specify a plain scope query and a time window.

Instructions

Shows WHEN things happened: buckets matching messages with | timeslice, counts per bucket split into series (default: log level via log.levelname), and renders one compact sparkline + per-bucket counts per series. Use it to spot spikes and onsets before reading messages. The query must be a plain scope — no | aggregation operators (timeslice/count are appended; one search job, auto-deleted). Time range: exactly ONE of last (relative, e.g. "15m", "2h"; units s/m/h/d) OR both from and to (ISO-8601 like 2026-07-02T18:28:00, or epoch milliseconds).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
byNoSeries dimension (default "levelname", parsed from log.levelname). "_"-prefixed = native Sumo field (e.g. _sourcecategory); "none" = one total series; anything else parses log.<by> from the JSON payload.
toNoEnd time: ISO-8601 or epoch ms. Requires `from`.
fromNoStart time: ISO-8601 or epoch ms. Requires `to`.
lastNoRelative window ending now, e.g. "15m", "2h", "1d". Mutually exclusive with from/to.
queryYesSumo Logic scope query (keywords + metadata filters; no | aggregation operators).
intervalNoBucket size, e.g. "30s", "5m", "1h" (units s/m/h/d). Default: auto — the smallest nice step giving ≤40 buckets over the window.
timeZoneNoIANA timezone for query-time parsing (default UTC).
maxSeriesNoMax series rendered, ranked by total count (default 8; the rest merge into "(other)").
byReceiptTimeNoSearch by receipt time; recommended true for very recent windows (ingestion lag).
Behavior4/5

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

Annotations already declare read-only. The description adds valuable behavioral context: that aggregation operators are appended automatically, the search job is auto-deleted, and default series splitting logic. This goes beyond the safety profile provided by annotations.

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?

Two sentences, front-loaded with purpose and key constraints, no fluff. Every sentence adds essential information. Highly efficient for a complex tool.

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?

Given 9 parameters, no output schema, and moderate complexity, the description covers query constraints, time range options, series behavior, and output format (sparklines + counts). Lacks explicit return value details but still sufficient for correct invocation.

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

Parameters4/5

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

Schema coverage is 100%, so baseline is 3. The description adds meaningful context for several parameters (e.g., 'by' parsing, 'interval' auto-sizing, time range mutual exclusivity), providing value beyond the schema descriptions.

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's purpose: showing when events happened via timeslice bucketing, counts per series, and compact sparklines. It distinguishes from siblings by framing it as a pre-reading spike/onset detector, which is specific and actionable.

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

Usage Guidelines4/5

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

The description explicitly advises using this tool 'to spot spikes and onsets before reading messages,' providing a clear use case. It also warns that queries must be plain scopes without aggregation operators, but does not name sibling tools for alternative scenarios, which would elevate to a 5.

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/mbe24/yokozuna-mcp'

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