Skip to main content
Glama

save_query

Persist a confirmed satellite search as a saved query and return a reusable slug, so you can download or stage scenes later without re-running the search.

Instructions

Persist a search as a saved query and return a reusable slug.

Takes the same arguments as search_scenes, plus an optional name and description. Unlike search_scenes (which is stateless and leaves nothing behind), this saves the search on the portal so it can be acted on later: the returned slug is what downloading and cart staging key off. Call this once the user has confirmed a search returns the scenes they want, then hand the slug to the bhd CLI (download / cart) until those actions land in-server.

Returns status="ok" with the slug and the shaped saved query. If the satellite is ambiguous or the request is invalid, returns the same status="ambiguous_satellite" / "invalid_request" shapes as search_scenes, and saves nothing.

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": "save_query"
  }
}

Input Schema

NameRequiredDescriptionDefault
latNo
lonNo
maxxNo
maxyNo
minxNo
minyNo
nameNo
sensorNo
productNo
end_dateYes
radius_kmNo
satelliteYes
start_dateYes
descriptionNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.2.0

TDQS

A4.2/5.0
Behavior4/5

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

Annotations cover the safety profile (readOnly=false, destructive=false, openWorld=true, idempotent=false), and the description adds real context on top: the search is persisted server-side, nothing is saved when the request fails, and the error shapes mirror search_scenes. It does not address whether repeated saves create duplicate entries despite idempotentHint=false, nor any auth requirements, which keeps it below a 5.

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 persistence purpose and the slug hand-off are front-loaded and the error contract is grouped in a closing paragraph. Minor waste in the transitional aside 'until those actions land in-server', which is roadmap chatter rather than actionable guidance.

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 usefully spells out return values (status=ok with slug and shaped query, plus the ambiguous_satellite / invalid_request failure shapes). The unresolved gap is the 14 undocumented input parameters, only partially mitigated by referencing search_scenes.

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

Parameters2/5

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

Schema description coverage is 0% across 14 parameters, so the description carries the full burden. It only says the arguments mirror search_scenes 'plus an optional name and description' – the remaining geo fields (lat/lon, minx/maxy bbox, radius_km), sensor, and product get no meaning at all, and the delegation forces the agent to consult another tool's schema.

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: 'Persist a search as a saved query and return a reusable slug.' It also positions itself against the sibling search_scenes by contrasting persistence with statelessness, so an agent can distinguish the two without opening either 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 ('Call this once the user has confirmed a search returns the scenes they want') and an explicit downstream path ('hand the slug to the bhd CLI (download / cart)'), plus the negative case against search_scenes. When, why, and what-next are all stated.

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