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://gis.puyallupwa.gov/arcgis/rest/services/PublicServices/Parcels/FeatureServer/0",
      +    "where": "1=1"
      +  },
      +  {
      +    "limit": 100,
      +    "order_by": "ACRES DESC",
      +    "out_fields": "PARCEL_ID,ZONE_TYPE,ACRES",
      +    "url": "https://gis.puyallupwa.gov/arcgis/rest/services/PublicServices/Zoning/FeatureServer/0",
      +    "where": "ZONE_TYPE = 'Residential'"
      +  }
      +]
  2. First observed

TDQS

A4.5/5.0
Behavior4/5

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

Annotations already declare readOnly, openWorld, idempotent, non-destructive. The description adds that it returns attribute rows and geometry, plus a sampling pattern. This is meaningful value beyond annotations, though it omits edge cases like max limit behavior.

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, front-loaded with the action and resource, and zero wasted words. The sampling tip is immediately useful.

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

Completeness5/5

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

With rich annotations, a fully described schema, and the description covering what, how, and a usage tip, this is complete for an AI agent to select and invoke correctly.

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 a quick synopsis of parameter roles and a concrete usage tip ('where="1=1" + out_fields="*"') that goes beyond the schema. This warrants a 4.

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 opens with a specific verb ('Query'), identifies the resource ('ArcGIS Feature Service / Map Service layer'), and notes the url comes from search_datasets. It clearly distinguishes from siblings like layer_info (metadata) and search_within (spatial query).

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?

The description explicitly ties usage to search_datasets, indicating when to use this tool. It also includes a practical sampling tip. However, it doesn't explicitly mention alternatives or exclusions, so it's just 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.

Try in Browser

Glama MCP Gateway

Add one secure layer between your agents and this server.

TDQS

A3.6/5.0
Disambiguation2/5

Several tool clusters overlap heavily: ask_pipeworx, ask_pipeworx_beta, ask_pipeworx_grounded, and deep_research all serve research questions through the same router, and the five polymarket_* tools plus bet_research form a dense prediction-market cluster. Even with detailed descriptions, an agent choosing between these near-synonyms would frequently need extra reasoning or make the wrong pick.

Naming Consistency2/5

Names mix product-prefixed verbs (ask_pipeworx, polymarket_arbitrage), generic verbs (remember, forget, recall, subscribe), and noun phrases (entity_profile, layer_info, recent_alerts). There is no consistent verb_noun or prefix convention across the set, making the tool surface feel patchwork rather than systematically named.

Tool Count2/5

With 34 tools, the count is already on the heavy side, but it is especially mismatched with the server name 'Arcgis Puyallup': only search_datasets, query_layer, and layer_info actually belong to that GIS domain. The rest are a broad Pipeworx research and prediction-market platform, so the set feels bloated and off-scope for the apparent purpose.

Completeness3/5

The ArcGIS read-only surface is minimally reasonable: search, schema inspection, and querying cover basic open-data consumption. The Pipeworx side is quite rich, with memory, subscriptions, lookups, grounded verification, and discovery, but the named GIS domain is thinly served and lacks obvious capabilities like listing all datasets or browsing layers without a keyword. Overall, coverage is uneven and hard to evaluate cleanly because the server mixes two unrelated purposes.