Skip to main content
Glama
IBM
by IBM

stac_search

Search for satellite imagery using bounding box coordinates, date range, and cloud cover filters. Access optical, radar, and elevation data from multiple STAC catalogs.

Instructions

Search for satellite scenes matching spatial and temporal criteria.

This is the primary entry point for finding satellite imagery. Results are cached for follow-up describe/download operations.

Args: bbox: Bounding box [west, south, east, north] in EPSG:4326. Example: [-0.7, 52.7, 0.5, 53.7] for Lincolnshire, UK collection: STAC collection (default: sentinel-2-l2a). Options: - sentinel-2-l2a: Optical imagery, 10-20m resolution, 13 bands - sentinel-2-c1-l2a: Reprocessed Sentinel-2 archive - landsat-c2-l2: Optical imagery, 30m resolution, 11 bands - sentinel-1-grd: SAR radar, 10m, sees through clouds (VV/VH) - cop-dem-glo-30: Global elevation data, 30m date_range: Date range as "YYYY-MM-DD/YYYY-MM-DD" (optional). Omit for cop-dem-glo-30 (no temporal dimension) max_cloud_cover: Maximum cloud cover percentage 0-100 (default: 20). Ignored for non-optical collections (sentinel-1-grd, cop-dem-glo-30). Increase to 30-50 if getting zero results max_items: Maximum results to return (default: 10) catalog: Catalog name (default: earth_search). Options: earth_search, planetary_computer, usgs output_mode: Response format - "json" (default) or "text"

Returns: JSON with matching scenes sorted by cloud cover (optical) or date

Tips for LLMs: - Typical workflow: stac_search → stac_describe_scene → stac_download_bands - For cloudy regions (e.g., UK autumn), increase max_cloud_cover to 50 or use sentinel-1-grd (SAR radar, not affected by clouds) - For flood mapping: use sentinel-1-grd (water appears dark in VV/VH) - For vegetation analysis: use sentinel-2-l2a with NDVI index - For elevation/terrain: use cop-dem-glo-30 (no date_range needed) - If zero results, check the hints field for suggestions (try different catalog, increase cloud cover, widen date range) - Scenes are cached — use scene_id in subsequent describe/download calls

Example: results = await stac_search( bbox=[0.8, 51.8, 1.0, 51.95], date_range="2024-06-01/2024-08-31", max_cloud_cover=10 )

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bboxYes
catalogNo
max_itemsNo
collectionNo
date_rangeNo
output_modeNojson
max_cloud_coverNo
Behavior5/5

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

Despite no annotations, the description transparently discloses key behaviors: results are cached for follow-up operations, return format is JSON sorted by cloud cover or date, and hints field is provided for troubleshooting. It also specifies when parameters are ignored and the default catalog/collection. No contradictions.

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

Conciseness5/5

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

The description is well-structured with a brief summary, numbered arguments, returns, tips, and an example. It is front-loaded with the purpose, and every sentence adds value. While lengthy, it is not verbose given the complexity.

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 complexity (7 parameters, no output schema, 23 sibling tools), the description is complete: it covers all parameter details, edge cases (e.g., omit date_range for cop-dem-glo-30), typical workflow, caching, and troubleshooting hints. It provides sufficient context for an AI agent to effectively use the tool.

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?

With 0% schema description coverage, the description compensates fully by providing detailed semantics for all 7 parameters: bbox format with example, collection options with resolution and bands, date_range format, max_cloud_cover defaults and exceptions, max_items default, catalog options, and output_mode. It also includes tips and examples.

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 clearly states 'Search for satellite scenes matching spatial and temporal criteria' and identifies it as 'the primary entry point for finding satellite imagery'. This distinguishes it from siblings like stac_describe_scene and stac_download_bands, which are follow-up operations.

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?

The description explicitly provides a typical workflow (stac_search → stac_describe_scene → stac_download_bands), offers tips for specific use cases (e.g., flood mapping, vegetation analysis), and advises when to adjust parameters (e.g., increase max_cloud_cover for cloudy regions, use sentinel-1-grd for SAR). It also notes when certain parameters are ignored (e.g., max_cloud_cover for non-optical collections) and suggests alternatives if zero results.

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

Install Server

Other Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/IBM/chuk-mcp-stac'

If you have feedback or need assistance with the MCP directory API, please join our Discord server