Skip to main content
Glama
USGS Spatial Data Catalog MCP Server

USGS Spatial Data Catalog MCP Server

by GSA-TTS

Usgs Spatcat Query Attributes

usgs_spatcat_query_attributes
Read-onlyIdempotent

Fetch features from USGS catalog layers using a read-only WHERE filter to compare attributes, match values with IN or LIKE, and limit per-layer results.

Instructions

Query Esri MapServer/FeatureServer layers by a read-only WHERE filter.

Example: ADMIN_ST = 'NM'. Supports comparisons, IN, LIKE, IS NULL, AND/OR, and parentheses, not arbitrary SQL/functions. out_fields is '*' or comma-separated field names. max_results applies per layer, not globally. Discover field names before filtering; results may be capped.

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>",
      "where": "<where>"
    },
    "name": "usgs_spatcat_query_attributes"
  }
}

Input Schema

NameRequiredDescriptionDefault
whereYes
layer_idsYes
out_fieldsNo*
max_resultsNo

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYes
warningsNo
retrieved_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A3.7/5.0
Behavior4/5

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

Annotations already cover the safety profile (readOnly, idempotent, non-destructive, open-world), so the description's job is to add operational detail. It does: results may be capped, max_results applies per layer rather than globally, and the filter is a restricted read-only WHERE clause rather than arbitrary SQL. The only gap is not stating what the cap actually is.

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 the core action, followed by a concrete example and then the constraints in descending order of importance. Dense and largely waste-free, though the telegraphic line breaks read more like clipped notes than prose.

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?

An output schema exists, so return values need no explanation, and the description covers the two things an agent could get wrong: filter grammar limits and per-layer result capping. What's missing is only minor — the concrete cap value and the meaning of the layer_ids identifier format.

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

Parameters3/5

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

Schema description coverage is 0%, so the description must carry the weight; it explains where (grammar, supported operators, exclusion of functions), out_fields ('*' vs comma-separated names) and max_results (per-layer scoping, default 100). layer_ids is left entirely to the schema's pattern and maxItems, so compensation is partial rather than complete.

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 — querying Esri MapServer/FeatureServer layers — narrowed by a read-only WHERE filter. That distinguishes it from the layer-discovery and geometry-operation siblings, though it never names an alternative directly.

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 a real prerequisite ("Discover field names before filtering") and a caveat about capped results, which tells the agent how to prepare. However, it gives no guidance on when to choose this attribute-filter tool over the spatial siblings such as intersect_layers or distance_to_layers, leaving the routing decision implicit.

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