Skip to main content
Glama
USGS Spatial Data Catalog MCP Server

USGS Spatial Data Catalog MCP Server

by GSA-TTS

Usgs Spatcat Get Sublayers

usgs_spatcat_get_sublayers
Read-onlyIdempotent

List an Esri MapServer layer’s sublayer IDs, names, scales, and geometry types, with optional field definitions and pagination info; inspect sublayers before running intersects queries.

Instructions

List Esri MapServer sublayer IDs, names, scales, and geometry types.

Set include_fields for field definitions and available pagination info. Inspect fields before attribute queries and sublayers before intersects.

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_id": "<layer_id>"
    },
    "name": "usgs_spatcat_get_sublayers"
  }
}

Input Schema

NameRequiredDescriptionDefault
layer_idYes
include_fieldsNo

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYes
warningsNo
retrieved_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, openWorld and non-destructive, so the safety profile is covered. The description adds behavioral context beyond that: it discloses that include_fields toggles field definitions and pagination info, and that this tool is meant as a prerequisite step in a two-stage workflow.

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?

Three short sentences, front-loaded with what the tool returns, then the option flag, then the workflow rule — no filler. The phrase 'available pagination info' is slightly vague about whether the flag enables or merely reports pagination.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Return values are covered by the output schema and the safety profile by annotations, so the description does not need to repeat them. The remaining gap is how an agent obtains a valid layer_id before calling, which matters given the required parameter and the chain of sibling list/search tools.

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 carries the burden; it explains include_fields well (field definitions plus pagination info). However, layer_id is never explained — nothing says it is an Esri MapServer layer/ID obtained from a search or list tool, nor what its valid format expectation is beyond the pattern.

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 ('List Esri MapServer sublayer IDs, names, scales, and geometry types') and even enumerates what is returned, so an agent knows exactly what comes back. It also differentiates itself from attribute-query and intersect capabilities by positioning itself as the prerequisite inspection step.

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

Usage Guidelines4/5

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

Gives concrete when-to-use guidance: call this before attribute queries to inspect fields, and before intersects to inspect sublayers. It lacks an explicit when-not-to-use clause or a named alternative (e.g. the layer-listing sibling), which keeps it short of a 5.

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