Skip to main content
Glama
Secil Canary Historian MCP Server

Secil Canary Historian MCP Server

by eins53740

read_timeseries

Retrieve historical time-series data for specified tags and time ranges from a Canary historian to analyze process behavior and troubleshoot issues.

Instructions

Retrieve historical timeseries data for specific tags and time ranges.

This tool retrieves historical process data from the Canary historian for analysis and troubleshooting.

Args: tag_names: Single tag name or list of tag names to retrieve data for. If a JSON-style string array is provided (e.g. '["tag1","tag2"]'), it will be parsed automatically, but callers should prefer passing an actual list. start_time: Start time (ISO timestamp or relative expression like "now-1d") end_time: End time (ISO timestamp or relative expression like "now") page_size: Number of samples per page (default 1000)

Returns: dict[str, Any]: Dictionary containing timeseries data with keys: - data: List of data points with timestamp, value, quality - count: Total number of data points returned - success: Boolean indicating if operation succeeded - tag_names: The tag names that were queried - start_time: The start time used for the query - end_time: The end time used for the query - hint: Guidance for correct usage

Raises: Exception: If authentication fails or API request errors occur

Note: When retrieving data for multiple tags, the MCP issues POST requests to the Canary historian. Avoid multi-tag GET queries to remain compatible with the API.

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": "read_timeseries"
  }
}

Input Schema

NameRequiredDescriptionDefault
viewsNo
end_timeYes
page_sizeNo
tag_namesYes
start_timeYes

Output Schema

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

B3.4/5.0
Behavior4/5

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

With no annotations, the description carries the full burden and does reasonably well: it states that auth failures and API errors raise exceptions, and it discloses the non-obvious transport behavior that multi-tag retrieval issues POST requests and that multi-tag GET queries should be avoided. It omits rate limits and whether large ranges are truncated or silently paged, but the operational picture is substantially better than bare.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The core statement is front-loaded and the Args/Raises/Note structure is easy to scan, but the second sentence is filler that restates the first, and the full Returns block duplicates what the output schema already declares. The trailing Note about POST vs GET is valuable but buried after the return-value inventory.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a 5-parameter read tool with an output schema present, the definition covers errors and transport adequately, and it need not enumerate return keys. However, 'views' is undocumented and there is no explanation of how page_size interacts with paging through a large time range, which is the main operational question an agent would have.

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 description coverage is 0%, so the description must compensate, and it does for most parameters: relative time expressions ('now-1d'), the JSON-string-array acceptance for tag_names, and the page_size default of 1000 are all supplied. The 'views' parameter appears in the schema but is never mentioned or explained anywhere, leaving one of five parameters semantically opaque.

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 opening sentence names a specific verb and resource ('Retrieve historical timeseries data') plus scope ('for specific tags and time ranges'), which is enough to distinguish it from snapshot-style siblings like get_last_known_values. It stops short of explicitly contrasting itself with get_aggregates or get_tag_data2, but the purpose is unambiguous.

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?

The only usage framing is the vague phrase 'for analysis and troubleshooting,' which does not tell an agent when to pick this over get_aggregates, get_last_known_values, or get_tag_data2. No exclusions, prerequisites, or alternative-selection criteria are given.

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