Skip to main content
Glama
industrial-aiops

OT-AIops Energy

stream_publish

Publish already-read numeric point data to a NATS message bus for downstream integration, skipping non-numeric values.

Instructions

[READ][risk=low] Publish already-read normalized points to a message bus (NATS).

Egress of data the agent already READ — NOT a control write. Each numeric point becomes a JSON
message on ``<subject_prefix>.tag.<metric>``; non-numeric points are skipped (use a historian
sink for text/state). Needs the extra: pip install iaiops[nats].

Args:
    points: Collected point dicts (e.g. from *_read_many): {ref/metric, value, timestamp, ...}.
    subject_prefix: NATS subject root (default 'iaiops').
    servers: Comma-separated NATS server URLs (default nats://localhost:4222).
    token: Optional NATS auth token.
    tls: Use TLS to the broker.
    publisher: Bus kind (currently 'nats').

Returns dict: {publisher, subject_prefix, received, published, skipped_non_numeric}.

Example: stream_publish(points=[{"ref": "line1.temp", "value": 21.5}], subject_prefix="plant").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
tlsNo
tokenNo
pointsYes
serversNonats://localhost:4222
publisherNonats
subject_prefixNoiaiops
Behavior5/5

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

Beyond the annotations, the description discloses important behaviors: it skips non-numeric points, requires an extra install ('pip install iaiops[nats]'), formats subjects as '<subject_prefix>.tag.<metric>', and returns a dict with counters. It also explicitly frames the side effect as safe egress of already-read data, adding value beyond readOnlyHint=false.

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 front-loaded with a one-line summary, then details, args, return, and example. Each section earns its place; the example clarifies usage and the install note is essential. It is concise for the amount of information covered, with no filler.

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?

With no output schema, the description compensates fully by stating the return dict structure. It covers prerequisites, alternative tools, behavior on non-numeric data, parameters, and an example—making it complete for a 6-parameter tool with only 1 required parameter.

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 carries full responsibility. It provides meaningful explanations for all six parameters (points, subject_prefix, servers, token, tls, publisher), including defaults and the expected shape of 'points', which goes well beyond the bare schema property names.

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 'Publish already-read normalized points to a message bus (NATS)', specifying a concrete verb, resource, and scope. It differentiates itself from siblings like stream_publish_event and historian_push by emphasizing egress of already-read numeric data and pointing to a historian sink for text/state.

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

Usage Guidelines5/5

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

It explicitly tells when to use: after '*_read_many' collection, for numeric points. It names an alternative for non-numeric points ('use a historian sink for text/state') and clarifies this is not a control write. This gives strong usage context beyond what annotations convey.

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