Skip to main content
Glama
industrial-aiops

OT-AIops

subscription_health

Read-only

Analyze subscription feed sequences to detect dropped, duplicate, or out-of-order data and identify republish rejections and overloaded channels causing OPC-UA/Sparkplug data loss.

Instructions

[READ][risk=low] Health of a sequenced subscription feed (OPC-UA or Sparkplug B).

Detects dropped notifications (sequence gaps), duplicates / out-of-order, a high
republish-rejection rate, and overloaded channels — the classic Kepware
"too many tags on one channel → republish/queue-flush dropouts" fault.

Args:
    sequence: Sequence numbers actually received, in arrival order.
    republish_requested: How many republish requests were made.
    republish_rejected: How many were rejected (server couldn't keep up).
    tags_per_channel: {channel/endpoint: tag_count} — flags channels over the max.
    max_tags_per_channel: Density above which a channel is flagged (default 5000).
    wrap_at: Modulus for rolling counters (e.g. 256 for Sparkplug B seq); omit
        for monotonic OPC-UA counters.

Returns dict: {received, missed_count, duplicate_count, out_of_order_count,
    republish_requested, republish_rejected, republish_reject_rate,
    overloaded_channels:[{channel, tags}], max_tags_per_channel,
    verdict ('ok'|'reordered'|'lossy'|'overloaded'), recommendation}.

Example: subscription_health(sequence=[1,2,4,5], tags_per_channel={"ch1":7000}).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
wrap_atNo
sequenceYes
tags_per_channelNo
republish_rejectedNo
republish_requestedNo
max_tags_per_channelNo

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. First observedv0.1.0

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=true, and the description adds behavioral details such as being a read operation with low risk, and explains the algorithmic detection of issues. This goes beyond the 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?

The description is well-structured with clear sections (purpose, args, returns, example) and front-loaded with the key purpose. However, it is somewhat lengthy, but every sentence adds value.

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?

Given the complexity (6 params, no output schema), the description is complete: it explains all inputs, details the return dict structure, and provides an example. This fully equips an agent to use the tool correctly.

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?

Despite 0% schema coverage, the description provides thorough explanations for all 6 parameters, including type hints, defaults, and an example. This fully compensates for the lack of 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: analyzing the health of a sequenced subscription feed (OPC-UA or Sparkplug B). It specifies what it detects (sequence gaps, duplicates, etc.), making it distinct from sibling tools like 'opcua_health_summary' or 'sparkplug_subscribe_sample'.

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 implies usage when monitoring subscription feeds and suspecting sequence issues or overloaded channels. It provides context but does not explicitly state when not to use it or suggest alternative tools for different scenarios.

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'

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