Skip to main content
Glama
Industrial-AIops Energy

Industrial-AIops Energy

historian_push

Writes collected telemetry points to a domestic time-series database (TDengine or IoTDB) for storage in the operator’s own database, skipping non-numeric values.

Instructions

[WRITE][risk=low][→historian] Push collected telemetry to a national TSDB.

Writes already-collected points to a domestic historian (信创) — TDengine or
IoTDB — instead of binding InfluxDB. Data egress to the operator's OWN database,
NOT a control-system write. Non-numeric points are skipped (numeric value column).

Args:
    points: Collected points — {ref|metric, value|present_value, timestamp?, ...}
        (e.g. the output of interrogate / integrity_poll / read_points / monitor).
    sink: 'tdengine' or 'iotdb'.
    host/port/user/password: TSDB connection params (sensible defaults per sink
        when blank/0).
    database: Target database (TDengine db / IoTDB storage group, e.g. 'root.iaiops');
        for 'sqlite' a .db file under $IAIOPS_HOME, the config directory or an
        IAIOPS_AGENT_READ_DIRS directory (empty = the iaiops store).

Returns dict: {sink, received, written, skipped_non_numeric, database}.

Example: historian_push(points=[{"ref":"line1.temp","value":21.5}], sink="tdengine",
    host="10.0.0.20", database="iaiops").

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": {
      "points": "<points>",
      "sink": "<sink>"
    },
    "name": "historian_push"
  }
}

Input Schema

NameRequiredDescriptionDefault
hostNolocalhost
portNo
sinkYes
userNo
pointsYes
databaseNo
passwordNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.9

TDQS

A4.6/5.0
Behavior5/5

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

Annotations already mark this as a non-read-only, open-world, non-destructive operation; the description adds substantial context: non-numeric points are skipped, blank/0 connection fields fall back to sink-specific defaults, database semantics vary by sink, and the return shape is listed. This is meaningful beyond the annotations and does not contradict them.

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 front-loads tags and a one-line purpose, then uses compact Args, Returns, and Example sections. For a 7-parameter write tool the length is justified and no sentence is obviously redundant.

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?

With no output schema and only sparse annotations, the description supplies the return dict and key operational behavior, which is enough to invoke it intelligently. It could still say more about failure modes, idempotency/duplicate handling, and the exact supported sink list, so it is not fully exhaustive.

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 0%, so the description must carry parameter meaning; it largely does by documenting points structure, sink names, connection defaults, and database target semantics. However, the sink line says only 'tdengine' or 'iotdb' while the database line later mentions 'sqlite', creating an internal ambiguity about supported sinks.

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 — push collected telemetry to a national TSDB — and names concrete sinks such as TDengine and IoTDB. It also distinguishes the operation from a control-system write and from binding InfluxDB, which helps separate it from read/query historian siblings.

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?

It gives clear context for use: writing already-collected points sourced from interrogate, integrity_poll, read_points, or monitor, and explicitly says this is data egress to the operator's own database rather than a control-system write. It stops short of naming read-side alternatives such as historian_query or historian_coverage, so it lacks full when/when-not routing.

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

Deploy Server

Other Tools