Run a Canadian data tool
call_toolRun one Canadian data tool (Statistics Canada, Bank of Canada, CMHC, provincial and city sources) found through search_tools or plan_query.
Use for: executing a tool by exact name with arguments that match the
arguments search_tools returned for it. Data tools read public sources
(StatCan, Bank of Canada, open-data portals). reproduce_workbook can save
an Excel file on a local stdio server; hosted exports return base64. Returns that
tool's result. detail is "brief" by default: values, periods, units and
scale, members, the citation, status flags, caveats and limits, with a
list of six or more rows written as CSV text ({"format": "csv", "csv": ...}),
and provenance cut to source, URL, licence and caveats. Pass
detail="full" for every field and the full provenance block (query time,
freshness, schema), with rows as JSON objects.
Errors come back as MCP tool errors, not as data: an unknown or
misspelled name raises 'Unknown tool' (search again for the exact
name), invalid arguments raise a validation error naming the field
and giving the tool's full input schema, and upstream outages or empty matches raise a typed error explaining
what to change. search_tools, call_tool and plan_query cannot be called
through it; call them directly. Tool calls are subject to the server's
timeout (MAPLE_TOOL_TIMEOUT_SECONDS, default 120).
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": {
"name": "<name>"
},
"name": "call_tool"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Exact tool name as returned by search_tools or plan_query, e.g. 'boc_get_observations'. | |
| detail | No | 'brief' (the default): values, units, citation, caveats and limits, long row lists as CSV. 'full': every field and the full provenance. | |
| arguments | No | Object matching that tool's arguments from search_tools. Omit or pass {} for a tool with no required parameters. |