Fallback: stage an Aard-issued dataset
stage_urlFallback for clients that cannot download and query the source locally.
Use only when local execution is unavailable or the user explicitly asks for Aard-managed staging. Never fetch the URL with web search or request its response body directly. Stage the exact unchanged fallback URL outside model context; this tool returns metadata only. Use its dataset_id with inspect_dataset or query_dataset.
The URL alone is sufficient. download_ref is an optional fast path — if you cannot copy it exactly, OMIT it rather than risk mistyping it; the server then re-derives the grant itself and the call still succeeds.
no_records_for_selection is TERMINAL, not a fault: the request was well-formed and the source holds no observations for it. Widen the selection or state that no data exists — do not retry the same selection.
A caller may hold only a few staged datasets at once: slots_max in the result says how many (normally four) and slots_used how many it holds now. The limit belongs to the caller's identity, not to this conversation: datasets staged in other conversations count, and ending a conversation frees nothing. A place comes back when release_dataset is called on a dataset or the dataset reaches its expires_at. At the limit this tool fails with dataset_limit_reached, followed by slots_used, slots_max and next_expiry (when the earliest held dataset expires). Retrying at once cannot work: call release_dataset on a dataset you have finished with, or, if you do not have its id, wait until next_expiry. So release each dataset as soon as you have what you need from it. download_concurrency_exceeded is different: your own stage_url or fetch calls still running hold the remaining places (slots_pending counts them), so retry once they finish. That retry is not certain to work: a stage_url that succeeds keeps its place as a held dataset, and the retry can then be refused with dataset_limit_reached. Releasing a dataset you hold frees a place either way. The figures are kept by the server that answered and can differ between calls.
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": {
"url": "<url>"
},
"name": "stage_url"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The exact csv_url/download_url from build_url, byte-for-byte. This is the value that matters — an edited URL is refused. | |
| format | No | Content-type handling. "auto" (default) requires the origin to declare a CSV media type. "csv" and "sdmx-csv" additionally accept an application/octet-stream response, for origins that serve CSV without labelling it — use them only when "auto" fails with unsupported_content_type. | auto |
| download_ref | No | Optional. The signed grant from the same build_url result, copied exactly. Omit it if you cannot. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| slots_max | No | ||
| dataset_id | Yes | ||
| expires_at | Yes | ||
| slots_used | No | ||
| content_type | Yes | ||
| bytes_downloaded | Yes |