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
| Name | Required | Description | Default |
|---|---|---|---|
| views | No | ||
| end_time | Yes | ||
| page_size | No | ||
| tag_names | Yes | ||
| start_time | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||