Skip to main content
Glama

util_anomalies

Read-only

Time-series anomaly + level-shift detector — Find spikes, dips and level shifts in a series of numbers offline. data= comma-separated numbers in time order (5-2000). Optional: threshold= robust z cut-off (default 3.5), window= rolling baseline size (>=5; default global), direction=both|up|down, shift_t= t-stat needed for a change point (default 5), labels= comma list naming each point (dates, ids). Uses median/MAD robust z-scores plus binary-segmentation change points on spike-clipped data. Returns verdict NORMAL/ANOMALIES_FOUND/LEVEL_SHIFT/ANOMALIES_AND_LEVEL_SHIFT, each anomaly with expected value and score, change points with before/after means, and whether the latest point is anomalous. Price: $0.003 USDC (Base, via x402).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "data": "<data>"
    },
    "name": "util_anomalies"
  }
}

Input Schema

NameRequiredDescriptionDefault
dataYes10,11,10,12,11,48,11,10,12,11,10,11,20,21,19,20,22,21,20,19

Schema Changelog

Changes observed during successful MCP inspections.

  1. Added

TDQS

A4/5.0
Behavior5/5

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

Beyond the readOnlyHint/openWorldHint/destructiveHint annotations, the description discloses that computation is offline, names the exact statistical method (median/MAD robust z-scores with spike-clipped binary segmentation), enumerates the four possible verdicts, and warns of a paid call ('Price: $0.003 USDC (Base, via x402)'). Cost and payment rail disclosure is material behavior an agent cannot infer from annotations.

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?

Front-loaded with the core purpose, then parameter notes, then return shape, then price — a sensible order with no filler sentences. It is dense and reads as one long paragraph, which hurts scannability slightly, but every clause carries information.

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?

There is no output schema, and the description compensates by enumerating the verdict values, per-anomaly expected value and score, and change-point before/after means, plus whether the latest point is anomalous. Safety is covered by annotations and cost is stated. The remaining gap is the mismatch between the five optional parameters described and the single-property input schema.

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%, but the schema declares only 'data', so the baseline would be a bare 3. The description goes well beyond it by defining threshold, window, direction, shift_t and labels with types, defaults and semantics (e.g. window '>=5; default global'). The one flaw is that these optional parameters appear in prose but not in the input schema, so an agent reading only the schema would miss them.

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 opens with a specific verb-and-resource statement: 'Find spikes, dips and level shifts in a series of numbers offline'. That is precise enough to separate it from util_stats (descriptive statistics) or util_forecast (projection). It stops short of naming a sibling or stating an explicit boundary, so it lands at a clear-but-undifferentiated 4.

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?

Usage is implied by the domain ('find spikes, dips and level shifts'), and the description gives tuning guidance for the algorithm's knobs. But it never says when to prefer this over util_stats or util_forecast, nor when not to use it (e.g. short series, non-numeric data). The 5-2000 point range is the only explicit exclusion.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources