Skip to main content
Glama
USGS Spatial Data Catalog MCP Server

USGS Spatial Data Catalog MCP Server

by GSA-TTS

Usgs Spatcat Get Layer

usgs_spatcat_get_layer
Read-onlyIdempotent

Fetch full metadata, service endpoints, and capabilities for a catalog layer by ID, so you can verify query support before choosing an operation.

Instructions

Get full layer metadata, service endpoints, and capabilities by ID.

Discover IDs with search_layers. Endpoints are returned as untrusted metadata, not fetched. Check capabilities before choosing an operation; service type alone does not establish query support.

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_layer"
  }
}

Input Schema

NameRequiredDescriptionDefault
layer_idYes

Output Schema

NameRequiredDescriptionDefault
dataYes
sourceYes
warningsNo
retrieved_atYes

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4.4/5.0
Behavior5/5

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

Annotations already declare readOnly/idempotent/non-destructive, and the description adds non-obvious behavior that annotations cannot convey: returned endpoints are 'untrusted metadata, not fetched' (no outbound calls to third-party URLs), and 'service type alone does not establish query support.' Those are exactly the caveats an agent needs before chaining into a query operation, and nothing conflicts with openWorldHint=true.

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?

Four short sentences, front-loaded with the purpose, then prerequisite, then safety caveat, then capability caveat. No redundant restatement of the title or schema, and every sentence carries actionable information.

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-shape explanation is unnecessary, and the description covers ID discovery and the two main behavioral gotchas. The only gap is error behavior — nothing says what happens when the ID is unknown or the service is unreachable.

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% for the single layer_id parameter, so the description must carry the load. It does add the useful fact that IDs come from search_layers, but it says nothing about the expected ID format or the constraints enforced by the schema 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 set ('Get full layer metadata, service endpoints, and capabilities by ID') and immediately distinguishes itself from the discovery sibling by naming search_layers as the way to obtain the ID. An agent can tell this apart from search_layers or list_spatial_layers without opening any schema.

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 a clear prerequisite chain ('Discover IDs with search_layers') and a selection rule for downstream work ('Check capabilities before choosing an operation'). It stops short of explicit when-not guidance (e.g., use get_sublayers instead if you need child layers), which keeps it from a 5.

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