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