Sentinel-1 vessel-detection tool contracts#

Resolve one record#

Use catalog_list_collections with no arguments when the collection is unknown. It returns only collections visible to the current host scope. Use catalog_search for bounded discovery:

{"collection":"sentinel-1-iw-grd","text":null,"filters":{"product":"IW_GRDH_1S"},"bbox":[4.0,51.0,5.0,52.0],"when_from":"2026-09-11T00:00:00Z","when_to":"2026-09-12T00:00:00Z","cursor":null,"limit":20}

For a filename copied from the collection viewer, resolve it literally:

{"collection":"sentinel-sample","filters":{"filename":"S1C_IW_GRDH_1SDV_20260807T023802_20260807T023831_008883_0119F0_9B48_COG.SAFE"},"limit":20}

Omit text for this lookup. filters.filename is an exact, case-sensitive scalar basename; no wildcard or operator is accepted. A complete .SAFE name in text also matches literally without similarity fallback. Other text queries use literal catalog text matching. Use shared retrieval separately for similarity; a neighbor does not prove a named image is absent. Exact scalar search filters support filename, scene_id, platform, sensor, modality, product, location_id, and port; arbitrary metadata filter names are not supported by this tool.

Follow next_cursor to collect all exact matches. Zero matches means no exact filename in the searched collection, not no image anywhere; list authorized collections when the collection is unknown. Errors or unavailable collections leave existence unverified. If multiple record IDs match, preserve their identities and ask for the intended record; never choose a semantic neighbor. Exact-read the selected returned ID and verify its metadata.filename matches before detection. Do not invent the catalog ID from the SAFE name or derive acquisition-time equality filters from its second-resolution timestamp; catalog timestamps may retain fractional seconds.

All optional fields may be omitted. limit is 1–500, the WGS84 bounding box is [west,south,east,north], time bounds are UTC, and next_cursor is opaque. Search returns a page of hits plus next_cursor and total; it does not replace an exact read. Confirm one selected hit with:

{"collection":"sentinel-1-iw-grd","record_id":"S1A-IW-GRD-001"}

catalog_get_record returns the exact sanitized record identity, metadata, geometry, and optional acquisition time. Pass only its unchanged collection and record ID to the start tool. A public catalog record does not prove that its private SAFE manifest is inference-ready. Production records commonly use sensor: sar; use collection, platform, and product metadata such as IW_GRDH_1S rather than requiring a literal sensor: sentinel-1. The asynchronous service controller validates the private manifest, and terminal status may report INCOMPLETE_PRODUCT or SOURCE_CHANGED. Stop if discovery, exact read, or required host scope is unavailable.

Run detection#

sentinel_1_vessel_detection_start accepts exactly one source reference:

{"collection":"sentinel-1-iw-grd","record_id":"S1A-IW-GRD-001","idempotency_key":"case-001"}

Project identity and authorization come from the MCP request context. The tool does not accept asset IDs, manifests, paths, endpoints, model names, thresholds, output locations, or runtime controls. It verifies that the record is one Sentinel-1 IW GRD product before GPU dispatch and returns a run ID plus initial state. SENSOR_MISMATCH is terminal for this request; do not switch tools automatically.

The idempotency key is 1–256 printable characters and scoped to the authorized project. Repeating the same key with the same request returns the same run. Reusing it with a different request is a conflict; choose a new key rather than altering or bypassing the request.

Call vessel_detection_get_status with:

{"run_id":"run-s1-001"}

Poll until succeeded, failed, or cancelled. Honor server retry guidance when returned; otherwise wait five seconds between calls. Never busy-loop. Start successful result retrieval with:

{"run_id":"run-s1-001","limit":200}

limit defaults to 200 and cannot exceed 1000. The response contains total and next_cursor. While next_cursor is not null, call vessel_detection_get_result again with the same run ID, limit, and that cursor; stop only when it is null. A cursor is bound to its run and must never be reused with another run. The complete immutable result retains the collection and record ID, source hashes, model/runtime revisions, score meaning, machine-readable limitations, artifact references, and WGS84 GeoJSON Point geometry. Point coordinates are [longitude, latitude]. A succeeded result with total: 0 means zero retained vessel candidates. A failed or cancelled run is unknown, never zero. Internal storage paths never appear.

vessel_detection_cancel accepts a run ID. Cancellation is cooperative and may race with success; read status again to learn the authoritative terminal state:

{"run_id":"run-s1-001"}

The service, not the caller or skill, resolves manifest.safe, matching VV/VH measurement and annotation files, calibration and thermal-noise LUTs, and referenced support files. It validates product identity and georeferencing, reads collection data through approved read-only roots, and converts raw SAFE measurements into the model’s fixed input representation. Results must state any known precise-orbit, border-noise, terrain-correction, or preprocessing-parity limitation.

Render a visual report#

After verifying source media as described in media retrieval, run:

uv run --script scripts/render_vessel_report.py render --staging-dir /absolute/run-directory --output-dir report < /absolute/run-directory/input.json

The input is exactly {"result_pages": [...], "bands": [VV_descriptor]}. Output directory must be empty and beneath staging. Inputs must be regular local files without symlinks or external GDAL sidecars. The one-shot offline utility does no network access or detection. It returns the standard ok/status/data JSON with manifest, manifest_sha256, and artifact hashes. Verify every file before completion. Outputs include native-grid overview.png, bounded candidate-sheet-NNN.png, report.md, complete searchable report.html, and manifest.json. The report preserves every candidate and provides row navigation to source pixels, pan/zoom, provenance and limitations. Zero detections still produce a scene and empty table. A visualization failure leaves the succeeded detector result intact; report the separate failure without starting another run.

Optional hosted managed bridge#

The direct GeoNeMo MCP schema above remains the interactive contract. The agent host may expose an additional scoped adapter with work_id in place of the caller-generated detection key. This is advertised separately and is never assumed available on the direct GeoNeMo server endpoint. Read managed collection work for bounded stage execution and receipt semantics. The host resolves keys and verifies collection, record, sensor, stage, and pinned source/version before executing.

Hosted report mode#

Use this mode only for an explicit GeoNeMo server-hosted request or a scoped hosted agent whose hosting plane assigns it. The ordinary external report default remains local, including when local media retrieval or rendering fails.

Read vessel_detection_get_status for the supplied or already retained run ID. Verify its Sentinel-1 sensor, exact source and allowed project/collection; require status: succeeded. Then call the run-only capability:

{"run_id":"run-s1-001"}

vessel_detection_render_report creates or reuses the checksum-bound hosted report. It accepts no collection, record, imagery, model, output path, endpoint or renderer selection from the caller. The GeoNeMo server retrieves every result page, stages the authoritative VV/annotation sources, and validates the report manifest and bounded artifacts independently of detector success. Its v1 response includes run_id, cached, manifest, manifest_sha256, and resources; each resource has a name, media type, byte size, SHA-256 and resource_uri. Return the hosted HTML and image resource links, complete candidate count, source/model provenance and all limitations. Do not represent these links as local files or infer that a table alone completes the scene overlay.

Reuse a completed run instead of calling start again. The mode grants neither GKB publication nor shell/file execution, and cannot expand the immutable role or collection scope. Rendering failure means an incomplete visualization; it does not turn a succeeded detector run into a failure or zero candidates. A zero-candidate succeeded run still produces the scene and an empty findings table.