Skip to main content
Glama

gva_layer_info

Retrieve metadata for GVA GIS layers, including fields, geometry types, spatial references, and extents to understand data structure.

Instructions

Get metadata information about the GVA GIS layer (fields, geometry type, spatial reference, extent)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • Python handler for the gva_layer_info tool: fetches layer metadata from the GVA GIS ArcGIS FeatureServer using make_request, extracts key fields like name, type, geometryType, spatialReference, extent, and fields, formats into JSON, and returns as TextContent.
    if name == "gva_layer_info": # Get layer metadata url = f"{BASE_URL}/{LAYER_ID}" params = {'f': 'json'} data = make_request(url, params) # Format response result = { "name": data.get("name"), "type": data.get("type"), "geometryType": data.get("geometryType"), "spatialReference": data.get("spatialReference"), "extent": data.get("extent"), "fields": data.get("fields", []) } return [TextContent( type="text", text=json.dumps(result, indent=2, ensure_ascii=False) )]
  • TypeScript handler for the gva_layer_info tool: asynchronously fetches layer metadata from the GVA GIS ArcGIS FeatureServer using makeRequest, extracts and formats key properties, stringifies to JSON, and returns as structured content.
    case "gva_layer_info": { // Get layer metadata const url = `${BASE_URL}/${LAYER_ID}`; const params = { f: "json" }; const data = await makeRequest(url, params); // Format response const result = { name: data.name, type: data.type, geometryType: data.geometryType, spatialReference: data.spatialReference, extent: data.extent, fields: data.fields || [], }; return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; }
  • Python registration of gva_layer_info tool in list_tools(), including empty input schema (no parameters required).
    Tool( name="gva_layer_info", description="Get metadata information about the GVA GIS layer (fields, geometry type, spatial reference, extent)", inputSchema={ "type": "object", "properties": {}, "required": [] } ),
  • TypeScript registration of gva_layer_info tool in listTools handler, including empty input schema.
    name: "gva_layer_info", description: "Get metadata information about the GVA GIS layer (fields, geometry type, spatial reference, extent)", inputSchema: { type: "object", properties: {}, required: [], }, },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/pepo1275/mcp4gva'

If you have feedback or need assistance with the MCP directory API, please join our Discord server