Skip to main content
Glama
industrial-aiops

OT-AIops Energy

historian_health

Read-only

Detect bad tags, data gaps, and flatlines in a time series. Provides a health verdict to identify data quality issues.

Instructions

[READ][risk=low] Bad-tag / flatline / gap detection over a provided series.

Pure analysis over an injected sample series — no live historian needed.

Args:
    series: Samples — scalars or {value, timestamp (ISO-8601), quality|good}.
    gap_threshold_s: Time gap (seconds) between consecutive samples that counts
        as a data gap (default 60).
    flatline_eps: Spread at/below which the series counts as flatline.

Returns dict: {samples, numeric_samples, bad_quality_count, flatline (bool),
    gap_count, gaps:[{after, gap_seconds}], stdev,
    verdict ('ok'|'degraded'|'gappy'|'flatline'|'bad_tag')}.

Example: historian_health(series=[{"value":10,"timestamp":"2026-06-28T10:00:00Z"}, ...]).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
seriesYes
flatline_epsNo
gap_threshold_sNo
Behavior4/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, and the description reinforces this with '[READ][risk=low]' and 'Pure analysis.' It goes beyond annotations by detailing the return dict structure and verdict values, giving the agent a more complete picture of the tool's behavior.

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?

The description is compact with labeled Args and Returns sections, front-loaded safety/risk info, and a practical example. Every sentence contributes useful information without redundancy.

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

Completeness5/5

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

There is no output schema, but the description specifies the complete return dict including all keys and the verdict string. The example further clarifies the expected input format, making the tool self-contained for an agent to call and interpret.

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

Parameters5/5

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

Schema description coverage is 0%, so the description must compensate, and it does. It defines the series format, gap_threshold_s as 'time gap ... counts as a data gap (default 60),' and flatline_eps as 'spread at/below which the series counts as flatline.' This fully documents all three parameters.

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 specific verb and resource: 'Bad-tag / flatline / gap detection over a provided series.' It clearly distinguishes itself from sibling tools like historian_query by emphasizing 'pure analysis over an injected sample series — no live historian needed.'

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 states the use case: analysis over an injected series, with the important caveat that no live historian is needed. It does not explicitly name alternative tools or provide when-not-to-use guidance, but the context is clear enough for an agent to select it appropriately.

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/industrial-aiops/industrial-aiops-energy'

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