Skip to main content
Glama

gva_layer_info

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

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 ArcGIS API using make_request and returns formatted JSON response.
    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: fetches layer metadata from ArcGIS API using makeRequest and returns formatted JSON response.
    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), }, ], }; }
  • Registration of the 'gva_layer_info' tool in Python MCP server, 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": [] } ),
  • Registration of the 'gva_layer_info' tool in TypeScript MCP server, including empty input schema (no parameters required).
    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