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.
Args: url: The exact csv_url/download_url from build_url, byte-for-byte. This is the value that matters — an edited URL is refused. download_ref: Optional. The signed grant from the same build_url result, copied exactly. Omit it if you cannot. format: 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| format | No | auto | |
| download_ref | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sha256 | Yes | ||
| dataset_id | Yes | ||
| expires_at | Yes | ||
| content_type | Yes | ||
| bytes_downloaded | Yes |