Skip to main content
Glama
industrial-aiops

OT-AIops Energy

export_data

Read-only

Export OT historian samples from the local SQLite store into CSV, SQLite, or Parquet files, optionally filtered by time, endpoint, or tag, and receive the file path with a row preview.

Instructions

[READ][risk=low] Export collected samples from the LOCAL SQLite sink to a file.

Source is ~/.iaiops/data.db — the local queryable store written by
historian_push(sink="sqlite") — NOT a live device read. Writes csv (Excel),
sqlite (SQL browser / Power BI) or parquet (pandas/Spark; needs
pip install 'iaiops[export]'), and returns the file path + row count with a
bounded inline preview (first 200 rows max) so the response never floods.

Args:
    fmt: 'csv' | 'sqlite' | 'parquet'.
    since/until: Optional ISO-8601 time bounds (inclusive).
    endpoint: Only samples from this endpoint label.
    tag: Only samples for this tag.
    limit: Max rows exported (1..100000; default 10000).
    out_path: Output file; default ~/.iaiops/exports/iaiops-export-<ts>.<ext>.

Returns dict: {format, path, rows, preview_rows:[{ts, endpoint, protocol, tag,
    value, quality, unit}] (≤200), preview_truncated}.

Example: export_data(fmt="csv", tag="line1.temp", since="2026-07-01T00:00:00").

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
fmtYes
tagNo
limitNo
sinceNo
untilNo
endpointNo
out_pathNo
Behavior5/5

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

The description adds significant behavioral context beyond the annotations: it identifies the source as ~/.iaiops/data.db, warns the output preview is bounded to 200 rows to avoid flooding, and notes the parquet format requires pip install 'iaiops[export].' These details are valuable and not present in the annotations. No contradictions with the readOnlyHint or destructiveHint.

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 organized with a clear one-line summary, followed by source context, arg breakdown, return structure, and an example. Every sentence carries essential information—no filler or repetition. Despite its length, it earns its space for a 7-parameter tool.

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?

The description is complete: it covers the source, format options, required dependency, all parameters, output schema (since no output schema is provided), and a concrete example. Given the tool's complexity (7 params, no output schema), this description covers all bases needed for an agent to invoke it 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?

With 0% schema description coverage, the description fully compensates by explaining every parameter: fmt values, since/until as ISO-8601 inclusive bounds, endpoint and tag as filters, limit with range and default, and out_path with default pattern. This goes far beyond the raw schema.

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+resource: 'Export collected samples from the LOCAL SQLite sink to a file.' It clearly distinguishes from siblings by noting the source is the local SQLite store, not a live device read, which differentiates it from historian_query and live-read tools.

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 provides clear context on when to use the tool: data comes from the local SQLite sink written by historian_push(sink="sqlite"), and explicitly states 'NOT a live device read.' It also gives format selection guidance (csv, sqlite, parquet) and mentions the optional dependency for parquet. However, it never explicitly names alternative tools (e.g., historian_query) or states 'when not to use,' so it stops short of a full usage guide.

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