Skip to main content
Glama
USGS Spatial Data Catalog MCP Server

USGS Spatial Data Catalog MCP Server

by GSA-TTS

Usgs Spatcat Intersect Layers

usgs_spatcat_intersect_layers
Read-onlyIdempotent

Intersect up to 20 catalog layers with a WGS84 point, polygon, or multipolygon to retrieve vector features or raster summaries for spatial analysis.

Instructions

Intersect layers with a WGS84 Point, Polygon, or MultiPolygon.

Vector results contain features; raster results contain summaries. Optional sublayers are Esri MapServer IDs; resolution is raster-only ('auto', 'native', or meters). WMS polygon queries require a sibling WFS/WCS endpoint. Preserve per-layer failures; absence is not a safe-site determination. Inspect layer capabilities first.

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": {
      "layer_ids": "<layer_ids>",
      "geometry": "<geometry>"
    },
    "name": "usgs_spatcat_intersect_layers"
  }
}

Input Schema

NameRequiredDescriptionDefault
geometryYesBounded two-dimensional WGS84 GeoJSON geometry (longitude, latitude).
layer_idsYes
sublayersNo
resolutionNo

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYes
warningsNo
retrieved_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.8/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, open-world behavior, and the description adds genuinely new behavioral facts: vector results contain features while raster results contain summaries, and per-layer failures are preserved such that absence of a feature is not a safe-site determination. That partial-failure caveat is the kind of trait annotations cannot express. It does not cover rate limits or result-size limits.

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?

Six tight sentences, front-loaded with the core action, then output shape, then parameter notes, then the caution. The line-broken phrasing is slightly choppy but no sentence is filler.

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?

For a four-parameter spatial tool with an output schema, this covers the important ground: what the two result modes return, which parameters are format-constrained, endpoint prerequisites, and the partial-failure semantics. Only the provenance of layer_ids and any practical limits on layer count are unaddressed.

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 only 25%, so the description must compensate, and it does for two of four parameters: sublayers are identified as Esri MapServer IDs and resolution is explained as raster-only with 'auto', 'native', or meter values. layer_ids semantics (the identifier format) and the geometry coordinate ordering are left to the schema.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Intersect layers') and constrains input geometry to WGS84 Point/Polygon/MultiPolygon, which is clear enough to distinguish it from attribute-query or point-analysis siblings. It does not explicitly name the sibling it replaces, so it stops short of a 5.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines3/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Provides real prerequisites: 'Inspect layer capabilities first' and 'WMS polygon queries require a sibling WFS/WCS endpoint,' plus the note that resolution is raster-only. However, it never states when an agent should choose this over usgs_spatcat_query_attributes or usgs_spatcat_analyze_point, so routing guidance is implied rather than explicit.

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