Skip to main content
Glama

Query Layer

query_layer
Read-onlyIdempotent

Query an ArcGIS Feature Service / Map Service layer by its url (from search_datasets). SQL-like where, comma-separated out_fields, order_by, limit, offset. Returns attribute rows (and geometry). Use where="1=1" + out_fields="*" to sample.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
urlYesFeature/Map Service layer url ending in /FeatureServer/<n> or /MapServer/<n>.
limitNoMax features (1-2000, default 50).
whereNoSQL where clause, e.g. "STATE = 'CA' AND YEAR >= 2020". Default "1=1".
offsetNoPagination offset.
order_byNoe.g. "POP DESC".
out_fieldsNoComma-separated field names, or "*" for all (default).

Schema Changelog

Changes observed during successful MCP inspections. Dates show when Glama detected each change.

  1. Changed1 schema field changed
    • addedInput schema / examples
      Added value: +[
      +  {
      +    "limit": 50,
      +    "out_fields": "*",
      +    "url": "https://services.arcgisonline.com/arcgis/rest/services/Kansas/FeatureServer/0",
      +    "where": "1=1"
      +  },
      +  {
      +    "limit": 100,
      +    "order_by": "ACRES DESC",
      +    "out_fields": "PARCEL_ID,OWNER,ACRES",
      +    "url": "https://services.arcgisonline.com/arcgis/rest/services/Kansas/FeatureServer/1",
      +    "where": "COUNTY = 'Johnson'"
      +  }
      +]
  2. First observed

TDQS

A4.4/5.0
Behavior4/5

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

Annotations already declare readOnly, idempotent, non-destructive, and open world. The description adds that it 'Returns attribute rows (and geometry)', which is useful behavioral info beyond the annotations. No contradiction with annotations.

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?

Two sentences, no fluff. The description is front-loaded with the core action and then packs useful parameter and usage details. Every word earns its place.

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?

With 6 parameters, 100% schema coverage, and a clear URL source, the description covers the essential usage: what it queries, key parameters, return type, and a sampling recipe. No output schema exists, but the description mentions the return type (attribute rows and geometry). Missing minor details like error handling, but sufficient for the tool's complexity.

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 coverage is 100%, so baseline is 3. The description adds value by summarizing parameters as 'SQL-like' and providing a concrete usage pattern ('where="1=1" + out_fields="*"') for sampling, which goes beyond the schema's individual parameter descriptions.

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?

The description clearly states the tool's function: 'Query an ArcGIS Feature Service / Map Service layer by its url', naming a specific verb and resource. It distinguishes itself from siblings by linking to search_datasets for the URL and listing its core query parameters.

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?

Provides clear context by noting the URL comes from search_datasets and offers a concrete sampling tip ('Use where="1=1" + out_fields="*"'). It doesn't explicitly exclude alternatives like layer_info, but the usage context is reasonably clear.

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

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.5/5.0
Disambiguation1/5

Many tools have overlapping purposes (e.g., ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded all route questions; polymarket_arbitrage, polymarket_edges, polymarket_edge_tracker all deal with prediction market edges). The inclusion of memory tools (remember, recall, forget) alongside research tools further blurs boundaries.

Naming Consistency2/5

Naming conventions are mixed: some tools use snake_case (ai_visibility_check), some use underscores with prefixes (ask_pipeworx, polymarket_arbitrage), and others are more generic (query_layer, layer_info). There is no consistent pattern across the set.

Tool Count2/5

With 34 tools, the set is overly large for a geospatial server; most tools are unrelated to ArcGIS Kansas (e.g., prediction market tools, general research tools). Only 3 tools (search_datasets, layer_info, query_layer) are pertinent, making the count excessive and unfocused.

Completeness1/5

The server claims to be an ArcGIS Kansas tool but provides only basic layer querying and dataset search. Missing essential GIS operations such as editing, spatial analysis, or advanced queries, making it severely incomplete for its stated purpose.