Skip to main content
Glama

Ver datos de una capa de geoportal

get_capa_geo_datos
Read-only

Fetch attribute data from an Ecuadorian geospatial layer by source and layer, with optional row limits, SQL filters, paging, and grouped sums; geometry is excluded.

Instructions

Attributes of a layer from search_capas_geo, geometry dropped. GeoServer (inamhi, mag, igm, maate): a sample of up to 20 features. ArcGIS (arconel, celec, msp): up to 500 rows with a SQL filtro and offset, or server-side sums by group (sumar, agrupar).

Tool call template

Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.

{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "tools/call",
  "params": {
    "arguments": {
      "fuente": "<fuente>",
      "capa": "<capa>"
    },
    "name": "get_capa_geo_datos"
  }
}

Input Schema

NameRequiredDescriptionDefault
capaYesThe layer's `capa` from search_capas_geo (INAMHI: "geonode:..." name; IGM: "workspace:name", e.g. nacional_2024:poblado_p_2024; MAATE: "mae_ide:name", e.g.…
countNoFeatures to fetch: 1-20 for inamhi/mag/igm/maate, 1-500 for arconel/celec/msp (default 5).
sumarNoarconel/celec/msp only: comma-separated numeric fields to sum.
filtroNoarconel/celec/msp only: SQL where clause; empty for all rows.
formatNotext summary (default) or json structured result.text
fuenteYesinamhi, mag, igm, maate, arconel, celec or msp.
offsetNoarconel/celec/msp only: rows (or groups) to skip when paging.
agruparNoarconel/celec/msp only: comma-separated fields to group by; needs `sumar`.

Output Schema

NameRequiredDescriptionDefault
filasNo
sourceNo
columnasNo
metadatosYes
url_fuenteNo

Schema Changelog

Changes observed during successful MCP inspections.

  1. Changed4 schema fields changedv0.15.2
    • changedInput schema / properties / capa / description
      Previous value: -"The layer's `capa` from search_capas_geo (INAMHI: \"geonode:...\" name; IGM: \"workspace:name\", e.g. nacional_2024:poblado_p_2024; MAG: \"categoria/store/name\";…"New value: +"The layer's `capa` from search_capas_geo (INAMHI: \"geonode:...\" name; IGM: \"workspace:name\", e.g. nacional_2024:poblado_p_2024; MAATE: \"mae_ide:name\", e.g.…"
    • changedInput schema / properties / count / description
      Previous value: -"Features to fetch: 1-20 for inamhi/mag/igm, 1-500 for arconel/celec/msp (default 5)."New value: +"Features to fetch: 1-20 for inamhi/mag/igm/maate, 1-500 for arconel/celec/msp (default 5)."
    • changedInput schema / properties / fuente / description
      Previous value: -"inamhi, mag, igm, arconel, celec or msp."New value: +"inamhi, mag, igm, maate, arconel, celec or msp."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "inamhi",
      -  "mag",
      -  "igm",
      -  "arconel",
      -  "celec",
      -  "msp"
      -]New value: +[
      +  "inamhi",
      +  "mag",
      +  "igm",
      +  "maate",
      +  "arconel",
      +  "celec",
      +  "msp"
      +]
  2. Changed9 schema fields changedv0.15.0
    • addedInput schema / properties / agrupar
      Added value: +{
      +  "default": "",
      +  "description": "arconel/celec/msp only: comma-separated fields to group by; needs `sumar`.",
      +  "type": "string"
      +}
    • changedInput schema / properties / capa / description
      Previous value: -"The layer's `capa` from search_capas_geo (INAMHI: \"geonode:...\" name; MAG: \"categoria/store/name\")."New value: +"The layer's `capa` from search_capas_geo (INAMHI: \"geonode:...\" name; IGM: \"workspace:name\", e.g. nacional_2024:poblado_p_2024; MAG: \"categoria/store/name\";…"
    • changedInput schema / properties / count / description
      Previous value: -"Number of features to fetch (1-20, default 5)."New value: +"Features to fetch: 1-20 for inamhi/mag/igm, 1-500 for arconel/celec/msp (default 5)."
    • addedInput schema / properties / filtro
      Added value: +{
      +  "default": "",
      +  "description": "arconel/celec/msp only: SQL where clause; empty for all rows.",
      +  "type": "string"
      +}
    • changedInput schema / properties / fuente / description
      Previous value: -"inamhi or mag."New value: +"inamhi, mag, igm, arconel, celec or msp."
    • changedInput schema / properties / fuente / enum
      Previous value: -[
      -  "inamhi",
      -  "mag"
      -]New value: +[
      +  "inamhi",
      +  "mag",
      +  "igm",
      +  "arconel",
      +  "celec",
      +  "msp"
      +]
    • addedInput schema / properties / offset
      Added value: +{
      +  "default": 0,
      +  "description": "arconel/celec/msp only: rows (or groups) to skip when paging.",
      +  "type": "integer"
      +}
    • addedInput schema / properties / sumar
      Added value: +{
      +  "default": "",
      +  "description": "arconel/celec/msp only: comma-separated numeric fields to sum.",
      +  "type": "string"
      +}
    • changedOutput schema / (root)
      Previous value: -nullNew value: +{
      +  "properties": {
      +    "columnas": {},
      +    "filas": {},
      +    "metadatos": {
      +      "properties": {
      +        "contrato": {
      +          "const": "ecudatamcp.response.v1"
      +        }
      +      },
      +      "required": [
      +        "contrato"
      +      ],
      +      "type": "object"
      +    },
      +    "source": {},
      +    "url_fuente": {}
      +  },
      +  "required": [
      +    "metadatos"
      +  ],
      +  "type": "object"
      +}
  3. Changed1 schema field changedv0.13.0
    • changedOutput schema / (root)
      Previous value: -{
      -  "additionalProperties": true,
      -  "type": "object"
      -}New value: +null
  4. Addedv0.10.0

TDQS

A3.6/5.0
Behavior3/5

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

Annotations already declare readOnlyHint=true and destructiveHint=false, so safety is covered structurally. The description adds genuinely useful context beyond that: attributes only (no geometry), hard row caps of 20 vs 500, and server-side aggregation. It still does not describe failure behaviour (what happens with a bad capa or an unsupported filtro on GeoServer sources) or whether truncation is signalled.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness4/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Three tight sentences, front-loaded with what the tool returns and immediately followed by the per-source behaviour split. Source names are compressed into bare lowercase lists (inamhi, mag, igm, maate) which is efficient but forces the reader to cross-reference the enum to decode.

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?

An output schema exists, so return values need not be explained, and the description covers the two things an agent most needs: no geometry is returned and limits differ by source. What is missing is error/edge handling and whether `count` interacts with `filtro` or `agrupar` when both are set.

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 coverage is 100%, so the schema already documents all 8 parameters, and the description simply echoes which parameters belong to the ArcGIS branch (filtro, offset, sumar, agrupar). With the schema doing the heavy lifting, the baseline 3 applies; the description adds routing value but no new syntax or format detail.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

Names a specific resource ('attributes of a layer'), its provenance ('from search_capas_geo') and a key scope statement ('geometry dropped'). It clearly distinguishes itself from the discovery sibling by operating on a capa obtained there, though it never names an alternative for the cases this tool does not cover.

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?

Establishes the prerequisite chain (use search_capas_geo first to obtain `capa`) and gives concrete usage context by splitting behaviour per source: sampling for GeoServer sources, filtering/paging/aggregation for ArcGIS sources. No explicit when-not-to-use guidance or named alternative tool is given.

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

Deploy Server

Other Tools