detect_timezone
Identify timezone from city, country, address, IP hint, or phone prefix input to determine accurate local time for scheduling and coordination.
Instructions
Detect timezone from any input — city, country, address, IP hint, phone prefix. Cost: $0.001 USDC. Service: timezonedetective.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes |
Implementation Reference
- src/index.ts:166-223 (handler)The MCP server dynamically fetches tools from a registry URL. 'detect_timezone' is not hardcoded but would be handled by this CallToolRequestSchema handler which dispatches requests to the external API defined in the registry.
server.setRequestHandler(CallToolRequestSchema, async (request) => { const { name, arguments: args } = request.params; let registry: Registry; try { registry = await fetchRegistry(); } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Failed to fetch tool registry", detail: String(error) }), }, ], }; } const tool = registry.tools.find((t) => t.name === name); if (!tool) { return { content: [ { type: "text", text: JSON.stringify({ error: `Tool '${name}' not found`, available_tools: registry.tools.map((t) => t.name), }), }, ], }; } try { const result = await callTool(tool, args as Record<string, unknown>); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], }; } catch (error) { return { content: [ { type: "text", text: JSON.stringify({ error: "Tool call failed", tool: name, service: tool.service, detail: String(error), }), }, ], }; } });