Skip to main content
Glama

search_places

Find Swiss locations, mountains, and geographic features by name using Swiss open data. Search place names to get accurate geographic information without API keys.

Instructions

Search Swiss place names, localities, mountains, and geographic features

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
queryYesPlace name to search
typeNoType filter: locations, featuresearch

Implementation Reference

  • The handler logic for "search_places" inside handleGeodata in src/modules/geodata.ts.
    case "search_places": {
      const url = buildUrl(`${BASE}/rest/services/api/SearchServer`, {
        searchText: args.address as string ?? args.query as string,
        type: args.type as string ?? "locations",
        sr: 4326,
        limit: 10,
      });
      const data = await fetchJSON<SearchResponse>(url);
      return JSON.stringify({
        count: data.results.length,
        results: data.results.map(slimSearchResult),
      });
  • The input schema definition for "search_places" in src/modules/geodata.ts.
    {
      name: "search_places",
      description: "Search Swiss place names, localities, mountains, and geographic features",
      inputSchema: {
        type: "object",
        required: ["query"],
        properties: {
          query: { type: "string", description: "Place name to search" },
          type: { type: "string", description: "Type filter: locations, featuresearch" },
        },
      },
    },

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/vikramgorla/mcp-swiss'

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