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.loudoun.gov/arcgis/rest/services/Public/Parcels/FeatureServer/0",
      +    "where": "1=1"
      +  },
      +  {
      +    "limit": 100,
      +    "out_fields": "ADDRESS,ZIPCODE,OWNER",
      +    "url": "https://gis.loudoun.gov/arcgis/rest/services/Public/Addresses/FeatureServer/0",
      +    "where": "STATUS = 'Active'"
      +  }
      +]
  2. First observed

TDQS

A4.2/5.0
Behavior4/5

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

Annotations already declare readOnlyHint, idempotentHint, and destructiveHint=false. The description adds that the tool returns attribute rows and geometry, supports SQL-like filtering and pagination via limit/offset, and suggests a sampling pattern. These are extra behavioral details beyond annotations, with no contradictions.

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 core purpose, quickly lists the main parameters, states the return type, and ends with a useful tip. Every sentence earns its place with no redundancy.

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?

For a 6-parameter tool with no output schema, the description sufficiently explains what it returns (attribute rows and geometry), how to filter/paginate, and how to sample. The schema covers parameter details, and annotations cover the safety profile. It doesn't discuss error handling or spatial query alternatives, but it's largely complete for correct invocation.

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 100% with detailed explanations for all 6 parameters. The description only lists parameters in prose (where, out_fields, order_by, limit, offset) and adds a small note about using where/out_fields for sampling. This adds marginal value over the schema, so baseline 3 is appropriate.

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 a specific verb and resource: 'Query an ArcGIS Feature Service / Map Service layer by its url.' It also ties the url to 'search_datasets' and lists the key query parameters, distinguishing this data-retrieval tool from siblings like layer_info (metadata) and search_within (spatial search).

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 indicates the workflow by saying 'from search_datasets', implying the dataset must first be found. It also provides a practical sampling tip with where='1=1' and out_fields='*'. However, it does not explicitly exclude alternatives or state when not to use this tool, so a 4 is appropriate.

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
Disambiguation3/5

Many tools have distinct purposes, but there is overlap among data query tools (ask_pipeworx, ask_pipeworx_grounded, deep_research) and numerous Polymarket bet tools, which could cause confusion. Tool descriptions are detailed and help differentiate, but the diversity of domains requires careful reading.

Naming Consistency2/5

Tool names follow inconsistent patterns: some are snake_case verb_noun (query_layer, search_datasets), others are noun_verb (bet_research) or compound names (pipeworx_feedback, polymarket_arbitrage). There is no uniform convention, making it harder for agents to predict tool names.

Tool Count2/5

With 33 tools, the server feels overloaded for its apparent ArcGIS focus. Most tools are unrelated to ArcGIS (Polymarket, Pipeworx data, memory, subscriptions), suggesting a lack of scope. The count is high without a clear unifying purpose.

Completeness2/5

The tool surface is incomplete for any single domain. ArcGIS coverage is minimal (only query and schema), Pipeworx data tools are abundant but without a clear workflow, and Polymarket betting lacks order placement. The server tries to cover too many areas resulting in shallow coverage.