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
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | Place name to search | |
| type | No | Type filter: locations, featuresearch |
Implementation Reference
- src/modules/geodata.ts:169-180 (handler)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), }); - src/modules/geodata.ts:114-125 (schema)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" }, }, }, },