Get time series by table coordinate
get_data_by_coordinateRetrieve data observations for any Statistics Canada table by selecting one member ID for each dimension, with optional limit on most recent periods.
Instructions
Fetch observations by choosing one member ID per dimension of a table (get them from get_table_metadata). Example: table 18100004 with member_ids [2, 2] = CPI, Canada, all-items.
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": {
"product_id": "<product_id>",
"member_ids": "<member_ids>"
},
"name": "get_data_by_coordinate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| latest_n | No | N most recent periods | |
| member_ids | Yes | One member ID per dimension, in dimension order | |
| product_id | Yes | Table product ID, e.g. 18100004 |