Skip to main content
Glama

SkyFi: Validate existing-image order (price check)

skyfi_validate_archive_order
Read-onlyIdempotent

Exact 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 resolved provider, the billed aoi_sqkm (the area of the overlap between your AOI and the image's footprint — what's actually delivered), the billed organization ({id, name}, or null for a user with no organization), the delivery ({method, destination}, or null without delivery_method), and a summary line.

  • on rejection: valid=false, error (the upstream reason, e.g. "Area size is not supported …", insufficient budget, provider unavailable), and the HTTP status_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

NameRequiredDescriptionDefault
labelNoOptional friendly order label.
org_idNoUUID 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_wktYesWKT 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_idYesExisting-image UUID from skyfi_search_archive.
delivery_methodNoHow 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_paramsNoThe 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

NameRequiredDescriptionDefault

No arguments

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observed

TDQS

A4.8/5.0
Behavior5/5

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

Beyond the annotations (readOnly/idempotent/non-destructive), it discloses the crucial behavioral facts an agent cannot infer: nothing is ordered or charged, billing is based on the AOI/footprint overlap, and rejections surface an upstream error plus HTTP status_code. It also documents the null cases for organization and delivery, which is exactly the kind of edge-case context annotations cannot carry.

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 purpose and the no-charge guarantee, then usage, then return shape — a sensible order with no filler sentences. The returns block is somewhat long and partly duplicates the output schema, which keeps it from a 5.

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?

For a six-parameter validation tool, everything an agent needs is present: when to call it, what it precedes, what it does not do, and how success versus rejection are shaped. The extra return detail is redundant against the output schema but not harmful.

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 description coverage is already 100%, so the baseline is 3; the description earns an extra point by explaining what aoi_wkt actually costs the user ("you pay for that overlap area") and by tying delivery_method/delivery_params and org_id to concrete preconditions (org selection via skyfi_whoami, never pass credentials). It does not restate the parameter list, which is appropriate.

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 and resource ("exact price quote for one existing image … cropped to the user's AOI") and immediately bounds the scope with "No order is placed and nothing is charged." The archive-vs-tasking distinction is made explicit, so an agent can separate it from skyfi_place_archive_order and skyfi_validate_tasking_order 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?

Gives an explicit trigger ("when the user asks 'how much does this image cost?' for an image they picked"), an explicit sequencing rule ("always before skyfi_place_archive_order … catch problems early"), and names two alternatives with the conditions that select them (skyfi_search_archive for discovery/per-km² prices, skyfi_get_pricing for tasking rates).

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