SkyFi: Validate existing-image order (price check)
skyfi_validate_archive_orderExact price quote for one existing image — a past capture from SkyFi's catalog (the archive) — cropped to the user's AOI. No order is placed and nothing is charged.
Use it when the user asks "how much does this image cost?" for an image
they picked, and always before skyfi_place_archive_order to show the
real cost and catch problems early. To find images and their prices per
km², use skyfi_search_archive; for a provider's tasking rates, use
skyfi_get_pricing. Backed by platform-api /order-archive/validate.
Returns a dict:
on success:
valid=true,estimated_cost_cents,estimated_cost_usd, the resolvedprovider, the billedaoi_sqkm(the area of the overlap between your AOI and the image's footprint — what's actually delivered), the billedorganization({id, name}, or null for a user with no organization), thedelivery({method, destination}, or null withoutdelivery_method), and asummaryline.on rejection:
valid=false,error(the upstream reason, e.g. "Area size is not supported …", insufficient budget, provider unavailable), and the HTTPstatus_code.
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": {
"archive_id": "<archive_id>",
"aoi_wkt": "<aoi_wkt>"
},
"name": "skyfi_validate_archive_order"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| label | No | Optional friendly order label. | |
| org_id | No | UUID of the organization that owns and pays for this order. Required when the user has more than one organization (`organizations` in `skyfi_whoami`): ask the user which one to use, show only the organization names, and pass the matching UUID here. Omit it when the user has one organization (the tool uses it) or none. | |
| aoi_wkt | Yes | WKT polygon. You order the intersection of this AOI and the image's footprint — the image is cropped to it, and you pay for that overlap area. | |
| archive_id | Yes | Existing-image UUID from skyfi_search_archive. | |
| delivery_method | No | How SkyFi writes the imagery into the destination: `S3_SERVICE_ACCOUNT` (Amazon S3), `GS_SERVICE_ACCOUNT` (Google Cloud Storage) or `AZURE_SERVICE_ACCOUNT` (Azure Blob Storage). SkyFi uses its own service identity, which the bucket owner has allowed to write; never pass credentials. Set together with `delivery_params`. | |
| delivery_params | No | The destination for `delivery_method`, in that method's shape: `{s3_bucket_id}` for S3, `{gs_project_id, gs_bucket_id}` for Google Cloud Storage, `{azure_account_name, azure_container_name}` for Azure — each with an optional `subfolder`. Use the exact values the receiving service gave you; do not invent them. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||