arcgis_sanclemente_count_records

Pack: arcgis-sanclemente · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/arcgis_sanclemente_count_records for the schema, then POST the same URL with its arguments for the data.

Count records in one City of San Clemente GIS layer found by NAME, no url needed: “how many parcels”, or counts BY a field such as city (“parcels by city”). layer = name words (“parcels”) or a layer url; where = SQL filter; group_by = a field name or part of one (“city”). If several layers share the name it counts each and picks none; if the word matches several fields it counts by each.

Parameters

NameTypeRequiredDescription
layerstringyesLayer name words, e.g. “parcels”, or a Feature/Map Service layer url.
wherestringnoSQL where clause to count a subset, e.g. “STATE = ‘CO’”. Default “1=1” (all records).
group_bystringnoField name, or part of one (“city”), to count records by. Omit for one total.
limitnumbernoMax groups when group_by is set (default 100, max 1000).
org_idstringnoOptional ArcGIS orgId to override the default publisher.

Example call

Arguments

{
  "layer": "Housing Element Sites 6th Cycle"
}

curl

curl -X POST https://gateway.pipeworx.io/arcgis-sanclemente/mcp \
  -H 'Content-Type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"arcgis_sanclemente_count_records","arguments":{"layer":"Housing Element Sites 6th Cycle"}}}'

TypeScript (@pipeworx/sdk)

import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();

const result = await pipeworx.call('arcgis_sanclemente_count_records', {
  "layer": "Housing Element Sites 6th Cycle"
});

Response shape

FieldTypeDescription
layerstring
urlstring
wherestring
countnumber
publisher_record_countnumber | null
several_layersboolean
notestring
layersarray
counts_byarray
Full JSON Schema
{
  "type": "object",
  "properties": {
    "layer": {
      "type": "string"
    },
    "url": {
      "type": "string"
    },
    "where": {
      "type": "string"
    },
    "count": {
      "type": "number"
    },
    "publisher_record_count": {
      "type": [
        "number",
        "null"
      ]
    },
    "several_layers": {
      "type": "boolean"
    },
    "note": {
      "type": "string"
    },
    "layers": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "counts_by": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "alias": {
            "type": "string"
          },
          "groups": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "value": {},
                "count": {
                  "type": "number"
                }
              },
              "additionalProperties": true
            }
          }
        },
        "additionalProperties": true
      }
    }
  },
  "additionalProperties": true
}

Connect

Add this to your MCP client config — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the arcgis-sanclemente pack
{
  "mcpServers": {
    "arcgis-sanclemente": {
      "url": "https://gateway.pipeworx.io/arcgis-sanclemente/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build November 28, 2026