Skip to main content
Glama

Fallback: stage an Aard-issued dataset

stage_url

Fallback 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

NameRequiredDescriptionDefault
urlYesThe exact csv_url/download_url from build_url, byte-for-byte. This is the value that matters — an edited URL is refused.
formatNoContent-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_refNoOptional. The signed grant from the same build_url result, copied exactly. Omit it if you cannot.

Output Schema

NameRequiredDescriptionDefault
sha256Yes
slots_maxNo
dataset_idYes
expires_atYes
slots_usedNo
content_typeYes
bytes_downloadedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed2 schema fields changed
    • addedOutput schema / properties / slots_max
      Added value: +{
      +  "type": "integer"
      +}
    • addedOutput schema / properties / slots_used
      Added value: +{
      +  "type": "integer"
      +}
  2. Changed3 schema fields changed
    • addedInput schema / properties / download_ref / description
      Added value: +"Optional. The signed grant from the same build_url result,\ncopied exactly. Omit it if you cannot."
    • addedInput schema / properties / format / description
      Added value: +"Content-type handling. \"auto\" (default) requires the origin to\ndeclare a CSV media type. \"csv\" and \"sdmx-csv\" additionally accept\nan application/octet-stream response, for origins that serve CSV\nwithout labelling it — use them only when \"auto\" fails with\nunsupported_content_type."
    • addedInput schema / properties / url / description
      Added value: +"The exact csv_url/download_url from build_url, byte-for-byte. This\nis the value that matters — an edited URL is refused."
  3. First observed

TDQS

A4.4/5.0
Behavior4/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

Goes well beyond the supplied annotations (readOnlyHint=false, openWorldHint=true) by disclosing the whole failure surface: no_records_for_selection is terminal, dataset_limit_reached carries slots_used/slots_max/next_expiry, and download_concurrency_exceeded is a transient contention case with a different retry rule. It also explains that the quota belongs to the caller identity rather than the conversation, so slots persist across sessions. Slight deduction: the statement that a successful retry can still be refused with dataset_limit_reached makes the retry contract hard to act on, and some of the slot accounting belongs in the output schema.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness3/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Correctly front-loaded — fallback purpose first, prohibitions next, mechanics last — but roughly 350 words with redundant beats: 'Retrying at once cannot work' restated, 'Releasing a dataset you hold frees a place either way', and a closing aside about per-server figures that reads as a hedge rather than instruction. Several slot-accounting sentences could be compressed to a fraction of their length.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness4/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

High-complexity tool (quota'd, non-idempotent, open-world fetch) and the description covers the parts an agent must know before calling: terminal vs retryable errors, slot exhaustion, and the identity-scoped limit. An output schema exists, so the return shape needn't be spelled out, though the description does partially narrate return fields (slots_max, slots_used, next_expiry), which is mild duplication rather than a gap.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters4/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% (baseline 3), and the description does add real meaning on top: 'The URL alone is sufficient' plus the explicit downgrade of download_ref to an optional fast path that should be omitted rather than mistyped, with the server re-deriving the grant. That is actionable risk guidance the schema only hints at. Its remaining value is largely restatement of schema text, so it stops short of 5.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

Opens with a precise verb+resource: staging an Aard-issued dataset from a URL as a fallback, returning 'metadata only' and yielding a dataset_id. It explicitly separates itself from build_url (where the URL comes from), fetch (forbidden), and the downstream inspect_dataset/query_dataset consumers, so an agent can pick it out of the sibling set without opening a schema.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines5/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

States the positive trigger ('only when local execution is unavailable or the user explicitly asks'), the explicit prohibition ('Never fetch the URL with web search'), and the alternative path ('Use its dataset_id with inspect_dataset or query_dataset'). The format param also gets conditional guidance ('use them only when "auto" fails with unsupported_content_type'), leaving little to inference.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

Resources