Skip to main content
Glama

preview_download

Read-onlyIdempotent

Preview what a scene search would actually download, showing fetchable, archived, existing, and skipped scenes without logging in or fetching files.

Instructions

Dry-run a download for a search: show what would be fetched, no login.

Takes the same arguments as search_scenes, plus out_dir (where files would go) and force (preview re-downloading files already present). It runs the search and predicts, per scene, what a real download would do: would_download (staged, ready), may_404 (open data but archived — attempted but may fail until requested on the portal), already_here / already_elsewhere (a matching file exists), or skipped_on_order / skipped_priced (needs the portal).

Use this before telling a user to download, so they know how many scenes are actually fetchable. Nothing is downloaded and no login is used. File sizes are not known until a download starts (the portal exposes them only in the download response headers), and interrupted downloads cannot be resumed — both are stated in the result's disclaimers.

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": {
      "satellite": "<satellite>",
      "start_date": "<start_date>",
      "end_date": "<end_date>"
    },
    "name": "preview_download"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
maxxNo
maxyNo
minxNo
minyNo
forceNo
sensorNo
out_dirNo./downloads
productNo
end_dateYes
radius_kmNo
satelliteYes
start_dateYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.3/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive/openWorld, and the description adds genuinely new behavioral context: no login is used, nothing is fetched, per-scene outcome classes (would_download, may_404, already_here, skipped_priced...) are enumerated, and two hard limits (sizes only known at download time, no resume) are disclosed and pointed to result disclaimers. This is well beyond the annotation baseline and consistent with it.

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?

Front-loaded with the one-line purpose and the dry-run guarantee, then the outcome taxonomy, then caveats. Slightly long and the parenthetical explanations in the outcome list are dense, but every sentence carries information an agent needs.

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?

With no output schema, the description does the work of explaining return categories and the disclaimers field, and it flags the login-free, no-side-effect behavior. The remaining gap is that most filter parameters are never explained, relying on the agent inferring them from search_scenes.

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

Parameters3/5

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

Schema description coverage is 0% across 14 params, but the description gives real meaning for out_dir ('where files would go') and force ('preview re-downloading files already present') and delegates the rest to search_scenes ('takes the same arguments'). Geometry, sensor, product, satellite and date params carry no added semantics, so it only partially compensates for the coverage gap.

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?

States a specific verb+resource ('Dry-run a download for a search') plus the distinguishing scope ('no login', 'nothing is downloaded'), which cleanly separates it from download_query and download_wait. An agent can pick it without opening any schema.

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

Usage Guidelines4/5

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

Gives a clear when-to-use rule: 'Use this before telling a user to download, so they know how many scenes are actually fetchable,' and ties its argument shape to search_scenes. It stops short of naming download_query as the alternative it precedes, so routing is implied rather than explicit.

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