> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# Describe layer

> Before query_layer: find the right layer id in a service and the exact field names and codes for a where clause (zoning codes, flood zone values), or check a layer's licence and record limits. Pass a url from search_datasets or a pasted ArcGIS REST URL.

## Request contract

* **Method and path:** POST /apis/v1/arcgis-com/gis-layers/describe-layer
* **Availability:** enabled
* **Request URL template:** `https://api.aisa.one/apis/v1/arcgis-com/gis-layers/describe-layer`

[Complete OpenAPI definition](https://aisa.one/docs/openapi/arcgis-com.json)

Effective request declaration (including authentication and referenced schemas):

```json theme={null}
{
  "operationId": "arcgis-com.gis-layers.describe-layer",
  "method": "POST",
  "path": "/apis/v1/arcgis-com/gis-layers/describe-layer",
  "servers": [
    {
      "url": "https://api.aisa.one"
    }
  ],
  "parameters": [],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "requestBody": {
    "content": {
      "application/json": {
        "examples": {
          "provider": {
            "summary": "Official provider example; checked against AIsa request constraints",
            "value": {
              "url": "https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0"
            }
          }
        },
        "schema": {
          "additionalProperties": true,
          "properties": {
            "item_id": {
              "description": "ArcGIS item id of a Feature Service or Map Service (from search_datasets), optionally with a Hub `_<layer>` suffix. Alternative to url. Pattern: ^[0-9a-fA-F]{32}(_[0-9]{1,6})?$.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            },
            "layer": {
              "description": "Layer id within the service, when the URL names the service only.\n\nProvider reference: minimum 0; maximum 999999.",
              "type": "number",
              "x-alexandria-option-metadata": {
                "in": "body",
                "max": 999999,
                "min": 0
              }
            },
            "url": {
              "description": "ArcGIS REST service or layer URL, or an ArcGIS Online item page (https://www.arcgis.com/home/item.html?id=…). https://<host>/<adaptor>/rest/services/<folder>/<service>/FeatureServer[/<layer>] or …/MapServer[/<layer>], on ArcGIS Online (services*.arcgis.com/<orgId>/arcgis/rest/services/…) or an agency's ArcGIS Server (gis.<agency>.gov/arcgis/rest/services/…). Query strings are ignored; URLs carrying a token or key are refused.",
              "type": "string",
              "x-alexandria-option-metadata": {
                "in": "body"
              }
            }
          },
          "type": "object"
        }
      }
    },
    "required": false
  },
  "x-aisa-status": "enabled",
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "scheme": "bearer",
        "type": "http"
      }
    }
  }
}
```

## Cost and request rules

Usage-based pricing. Default request estimate: \$0.0005 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.


## OpenAPI

````yaml openapi/arcgis-com.json POST /apis/v1/arcgis-com/gis-layers/describe-layer
openapi: 3.1.0
info:
  description: ''
  title: ArcGIS public GIS layers
  version: '1'
  x-aisa-capabilities:
    idempotency: Idempotency-Key
    max_price: X-AISA-Max-Price-USD
    quote:
      header: X-AISA-Cost-Mode
      value: quote
  x-aisa-catalogs:
    arcgis-com:
      description: ''
      title: ArcGIS public GIS layers
      x-aisa-capabilities:
        idempotency: Idempotency-Key
        max_price: X-AISA-Max-Price-USD
        quote:
          header: X-AISA-Cost-Mode
          value: quote
      x-aisa-document:
        facts_hash: 8c39906225034f92d3d558e2f0fa758ae989856a45c3bd51ea0b294f38e72b24
        generator_version: '3'
        protocol_version: '1'
        schema_version: '1'
      x-aisa-plans:
        builder: 1
        display_plan: payg
        payg: 1
        similarweb_payg: 1
        team: 1
        version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-configured-paths:
    - /apis/v1/arcgis-com/gis-layers/describe-layer
    - /apis/v1/arcgis-com/gis-layers/query-layer
    - /apis/v1/arcgis-com/gis-layers/search-datasets
  x-aisa-document:
    composer_version: '31'
    document_hash: sha256:00f33c2a8a5b964ed73401a533d63bdd2274c3969393e53d9a5c4952527e4469
    facts_hash: 8c39906225034f92d3d558e2f0fa758ae989856a45c3bd51ea0b294f38e72b24
    generator_version: '3'
    protocol_version: '1'
    response_pending: []
    schema_version: '1'
  x-aisa-plans:
    builder: 1
    display_plan: payg
    payg: 1
    similarweb_payg: 1
    team: 1
    version: e70a0959cd1b93b84ae16dffd7a538273ddb9c1d46277b82823c37ff1b6bc0fb
  x-aisa-provider: arcgis-com
servers:
  - url: https://api.aisa.one
security:
  - bearerAuth: []
paths:
  /apis/v1/arcgis-com/gis-layers/describe-layer:
    post:
      tags:
        - ArcGIS public GIS layers
      summary: Describe layer
      description: >-
        Before query_layer: find the right layer id in a service and the exact
        field names and codes for a where clause (zoning codes, flood zone
        values), or check a layer's licence and record limits. Pass a url from
        search_datasets or a pasted ArcGIS REST URL.
      operationId: arcgis-com.gis-layers.describe-layer
      requestBody:
        content:
          application/json:
            examples:
              provider:
                summary: >-
                  Official provider example; checked against AIsa request
                  constraints
                value:
                  url: >-
                    https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
            schema:
              additionalProperties: true
              properties:
                item_id:
                  description: >-
                    ArcGIS item id of a Feature Service or Map Service (from
                    search_datasets), optionally with a Hub `_<layer>` suffix.
                    Alternative to url. Pattern:
                    ^[0-9a-fA-F]{32}(_[0-9]{1,6})?$.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
                layer:
                  description: >-
                    Layer id within the service, when the URL names the service
                    only.


                    Provider reference: minimum 0; maximum 999999.
                  type: number
                  x-alexandria-option-metadata:
                    in: body
                    max: 999999
                    min: 0
                url:
                  description: >-
                    ArcGIS REST service or layer URL, or an ArcGIS Online item
                    page (https://www.arcgis.com/home/item.html?id=…).
                    https://<host>/<adaptor>/rest/services/<folder>/<service>/FeatureServer[/<layer>]
                    or …/MapServer[/<layer>], on ArcGIS Online
                    (services*.arcgis.com/<orgId>/arcgis/rest/services/…) or an
                    agency's ArcGIS Server
                    (gis.<agency>.gov/arcgis/rest/services/…). Query strings are
                    ignored; URLs carrying a token or key are refused.
                  type: string
                  x-alexandria-option-metadata:
                    in: body
              type: object
        required: false
      responses:
        '200':
          content:
            application/json:
              examples:
                provider:
                  description: Published by the provider on 2026-10-09T17:30:38Z.
                  summary: Official provider example
                  value:
                    attribution:
                      access_information: 'Source: FEMA, Esri'
                      copyright_text: null
                      item_id: ccd29fb4bd5e4b44a2d61638829a5d7e
                      item_title: USA Flood Hazard Areas
                      item_url: >-
                        https://www.arcgis.com/home/item.html?id=ccd29fb4bd5e4b44a2d61638829a5d7e
                      license_info: >-
                        This work is licensed under the Esri Master License
                        Agreement. View Summary | View Terms of Use
                    layer:
                      bbox_wgs84:
                        - -170.84842
                        - -14.375153
                        - 145.832189
                        - 66.591598
                      capabilities:
                        - Query
                        - Extract
                      copyright_text: null
                      description: null
                      display_field: null
                      extent:
                        wkid: 3857
                        xmax: 16233965.037100002
                        xmin: -19018759.0796
                        ymax: 10040669.876500005
                        ymin: -1617292.3216999993
                      field_count: 24
                      fields:
                        - alias: Object ID
                          domain: null
                          length: null
                          name: OBJECTID
                          nullable: false
                          type: OID
                        - alias: FIRM Study ID
                          domain: null
                          length: 6
                          name: DFIRM_ID
                          nullable: true
                          type: String
                        - alias: Version ID
                          domain: null
                          length: 11
                          name: VERSION_ID
                          nullable: true
                          type: String
                        - alias: Flood Area ID
                          domain: null
                          length: 32
                          name: FLD_AR_ID
                          nullable: true
                          type: String
                        - alias: Study Type
                          domain: null
                          length: 38
                          name: STUDY_TYP
                          nullable: true
                          type: String
                        - alias: Flood Hazard Zone
                          domain: null
                          length: 17
                          name: FLD_ZONE
                          nullable: true
                          type: String
                        - alias: Flood Hazard Zone Subtype
                          domain: null
                          length: 80
                          name: ZONE_SUBTY
                          nullable: true
                          type: String
                        - alias: Special Flood Hazard Area (T/F)
                          domain: null
                          length: 1
                          name: SFHA_TF
                          nullable: true
                          type: String
                        - alias: Static Base Flood Elevation
                          domain: null
                          length: null
                          name: STATIC_BFE
                          nullable: true
                          type: Double
                        - alias: Vertical Datum
                          domain: null
                          length: 17
                          name: V_DATUM
                          nullable: true
                          type: String
                        - alias: AO Zone Depth
                          domain: null
                          length: null
                          name: DEPTH
                          nullable: true
                          type: Double
                        - alias: Length Units
                          domain: null
                          length: 16
                          name: LEN_UNIT
                          nullable: true
                          type: String
                        - alias: Flood Flow Velocity
                          domain: null
                          length: null
                          name: VELOCITY
                          nullable: true
                          type: Double
                        - alias: Velocity Unit
                          domain: null
                          length: 20
                          name: VEL_UNIT
                          nullable: true
                          type: String
                        - alias: Flood Control Restoration Zones
                          domain: null
                          length: 17
                          name: AR_REVERT
                          nullable: true
                          type: String
                        - alias: Flood Control Restoration Zones Subtype
                          domain: null
                          length: 57
                          name: AR_SUBTRV
                          nullable: true
                          type: String
                        - alias: Flood Control Restoration Zones BFE Revert
                          domain: null
                          length: null
                          name: BFE_REVERT
                          nullable: true
                          type: Double
                        - alias: Flood Control Restoration Zones Depth Revert
                          domain: null
                          length: null
                          name: DEP_REVERT
                          nullable: true
                          type: Double
                        - alias: >-
                            Flood Control Restoration Zones Dual Zone
                            Classification
                          domain: null
                          length: 1
                          name: DUAL_ZONE
                          nullable: true
                          type: String
                        - alias: Source Citation
                          domain: null
                          length: 21
                          name: SOURCE_CIT
                          nullable: true
                          type: String
                        - alias: null
                          domain: null
                          length: 36
                          name: GFID
                          nullable: true
                          type: String
                        - alias: Esri Symbology
                          domain: null
                          length: 50
                          name: esri_symbology
                          nullable: true
                          type: String
                        - alias: Shape Area
                          domain: null
                          length: null
                          name: SHAPE__Area
                          nullable: true
                          type: Double
                        - alias: Shape Length
                          domain: null
                          length: null
                          name: SHAPE__Length
                          nullable: true
                          type: Double
                      geometry_type: Polygon
                      id: 0
                      max_record_count: 2000
                      name: USA_Flood_Hazard_Areas
                      object_id_field: OBJECTID
                      queryable: true
                      supports_order_by: true
                      supports_pagination: true
                      supports_statistics: true
                      type: Feature Layer
                      url: >-
                        https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
                    observed_at_ms: 1791567020556
                    service:
                      capabilities:
                        - Query
                        - Extract
                      copyright_text: null
                      current_version: 12
                      description: null
                      host: services5.arcgis.com
                      item_id: ccd29fb4bd5e4b44a2d61638829a5d7e
                      layers:
                        - geometry_type: Polygon
                          id: 0
                          name: USA_Flood_Hazard_Areas
                          parent_layer_id: null
                          type: Feature Layer
                          url: >-
                            https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
                      max_record_count: 2000
                      name: USA_Flood_Hazard_Areas_view
                      tables: []
                      type: FeatureServer
                      url: >-
                        https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer
                    url: >-
                      https://services5.arcgis.com/7weheFjxuNkGGiZi/arcgis/rest/services/USA_Flood_Hazard_Areas_view/FeatureServer/0
              schema:
                not:
                  type: 'null'
                x-aisa-schema-completeness: documented-fields-only
          description: >-
            Read an ArcGIS FeatureServer or MapServer service, or one of its
            layers, from its REST URL or ArcGIS item id: the service's layers
            and tables (id, name, type, geometry type, URL), description,
            capabilities and record limit; for a layer, its fields (name, alias,
            type, length, coded-value or range domains), geometry type, object
            id and display fields, extent (native and WGS84 when convertible),
            query capabilities and max record count. Always includes
            attribution: the ArcGIS Online item's licence text and credits plus
            the copyright text, so results can be credited. Works with ArcGIS
            Online (services*.arcgis.com) and any agency-hosted ArcGIS Server;
            the answer must be ArcGIS service JSON, otherwise invalid_input
            not_arcgis_service. Token-protected services are not_found.


            The response contains the tool result directly.


            | Documented field | Provider type | Description |

            | --- | --- | --- |

            | `attribution` | object | Who to credit and the terms of use.
            Licence text and credits come from the ArcGIS Online item behind the
            service (null for agency servers without one); copyright_text from
            the service or layer itself. |

            | `layer` | object | Layer detail when a layer was named; null for a
            service. |

            | `observed_at_ms` | number |  |

            | `service` | object |  |

            | `url` | string | Canonical service or layer URL that was read. |



            These are the provider's documented fields. Field requiredness,
            nullability and nested object structures are specified only where
            the descriptions explicitly say so.
        default:
          content:
            application/json:
              schema: {}
          description: >-
            Error response; upstream passthrough responses may use provider
            formats
components:
  securitySchemes:
    bearerAuth:
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.