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.

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

TableJSON Schema
NameRequiredDescriptionDefault
urlYes
formatNoauto
download_refNo

Output Schema

TableJSON Schema
NameRequiredDescriptionDefault
sha256Yes
dataset_idYes
expires_atYes
content_typeYes
bytes_downloadedYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.7/5.0
Behavior4/5

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

Annotations already declare readOnlyHint=false, destructiveHint=false, idempotentHint=false, openWorldHint=true. The description adds meaningful behavioral context: the tool stages outside model context, returns metadata only, and treats no_records_for_selection as terminal rather than a fault. It also warns that an edited URL is refused. This goes beyond the annotations without contradicting them.

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

Conciseness4/5

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

The description is dense but well-organized: purpose, usage constraints, terminal behavior, then parameter details. It earns its length because every sentence adds operational guidance. Slightly long, but the complexity of the tool justifies it.

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

Completeness5/5

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

Given the tool's complexity (3 params, 0% schema coverage, output schema present), the description covers the critical operational details: when to use, what not to do, how to handle errors, and how to chain with sibling tools. The output schema exists, so return values need not be described. Nothing essential is missing.

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

Parameters5/5

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

Schema description coverage is 0%, so the description carries the full burden. It explains the exact semantics of url (byte-for-byte, edited URLs refused), download_ref (optional fast path, omit if uncertain), and format (auto vs csv/sdmx-csv with specific failure conditions). This is far beyond what the bare schema provides.

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?

The description opens with 'Fallback for clients that cannot download and query the source locally' and immediately distinguishes it from siblings like fetch and build_url. It states a specific verb (stage) and resource (an Aard-issued dataset), and clarifies it returns metadata only, not the response body.

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?

Explicitly says 'Use only when local execution is unavailable or the user explicitly asks for Aard-managed staging.' It also names alternatives (inspect_dataset, query_dataset) and gives a negative directive: 'Never fetch the URL with web search or request its response body directly.' This is strong when-to-use guidance.

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