clearGeoCache
Remove stored geolocation data from the cache to ensure accurate location updates and optimize system performance.
Instructions
Clear the geolocation cache
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/tools/geo.ts:110-120 (handler)The handler function for the clearGeoCache tool. It calls geoCache.clear() to clear the geolocation cache and returns a confirmation message.handler: async () => { geoCache.clear(); return { content: [{ type: 'text', text: JSON.stringify({ message: 'Geolocation cache cleared' }, null, 2) }] }; }
- src/tools/geo.ts:106-109 (schema)Input schema for the clearGeoCache tool, which requires no parameters.inputSchema: { type: 'object', properties: {} },
- src/index.ts:27-33 (registration)Spreads geoTools (which includes clearGeoCache) into the allTools object, which serves as the central registry for all MCP tools used in listing and execution handlers.const allTools: ToolKit = { ...encodingTools, ...geoTools, ...generatorTools, ...dateTimeTools, ...securityTools };