Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

get_tag_data2

Retrieve Canary historian time-series data for one or more tags over a time range, with optional aggregates, intervals, and response-size limits for trend analysis.

Instructions

Retrieve historian data via Canary getTagData2 endpoint with optional aggregates.

Args: tag_names: Single tag or list of tags (same normalization rules as read_timeseries) start_time: ISO timestamp or relative time string end_time: ISO timestamp or relative time string aggregate_name: Optional aggregate (e.g., TimeAverage2) aggregate_interval: Optional interval (e.g., 00:05:00) when aggregate_name is set max_size: Desired response size (# of samples) before Canary paginates (default 1000)

Returns: dict: Structured response including raw data, count, and metadata summary

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": {
      "tag_names": "<tag_names>",
      "start_time": "<start_time>",
      "end_time": "<end_time>"
    },
    "name": "get_tag_data2"
  }
}

Input Schema

NameRequiredDescriptionDefault
end_timeYes
max_sizeNo
tag_namesYes
start_timeYes
aggregate_nameNo
aggregate_intervalNo

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.2/5.0
Behavior3/5

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

With no annotations supplied, the description carries the full burden and does disclose one real behavior: exceeding max_size causes Canary to paginate, with a stated default of 1000. It says nothing about authentication/server requirements, error or partial-failure behavior, or how paginated results are continued, so the mutation-adjacent operational context is thin.

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 Args/Returns layout is front-loaded and scannable, and each line maps to one parameter with an example or default. The structure is appropriate for a six-parameter tool with zero schema coverage, with only mild redundancy against the schema's own default values.

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?

For a six-parameter, read-style historian query with an output schema present, the definition covers inputs, aggregate options, and pagination trigger adequately. The only real gap is operational context such as server/auth requirements or failure modes, which is a minor omission given the output schema documents return values.

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

Parameters3/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 carry the parameter meaning, and it does list all six with useful hints (ISO or relative timestamps, e.g. 'TimeAverage2', interval format '00:05:00', max_size default 1000). However, tag normalization rules are deferred entirely to read_timeseries rather than restated, and the interaction between aggregate_interval and aggregate_name is only implied.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description names a specific verb and resource ('Retrieve historian data via Canary getTagData2 endpoint') and notes aggregate support, which distinguishes it from a plain timeseries read. It stops short of explicitly naming how it differs from the sibling read_timeseries, only borrowing its normalization rules.

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

Usage Guidelines2/5

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

There is no statement of when to choose this over read_timeseries, get_aggregates, or get_last_known_values, and no preconditions are given. The Args section documents inputs rather than selection guidance, leaving the agent to infer the choice from parameter names alone.

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