feat: add maps_timezone and maps_weather tools#42
Merged
Conversation
- maps_timezone: timezone ID, name, UTC/DST offsets, local time via google-maps-services-js timezone() - maps_weather: current conditions (temperature, humidity, wind, UV, precipitation) via Google Weather API (weather.googleapis.com) - Register both tools in config, exec CLI, and smoke tests - Update README: 8 → 10 tools, add to comparison table and tool list - 94 tests passed (weather test is non-blocking if API not enabled) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add forecast_daily (up to 10 days) and forecast_hourly (up to 240 hours) - Add friendly error message for unsupported regions (Japan, China, etc.) - Document coverage limitations in tool description - Use US coordinates in tests (Japan unsupported by Weather API) - Fix pressure field mapping (airPressure, not pressure) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Apply agentskill-expertise P4 pattern — descriptions now lead with user trigger scenarios instead of feature lists: - elevation: "how high is this place", "is this area flood-prone" - timezone: "what time is it in Tokyo", "coordinate meeting across timezones" - weather: "what's the weather in Paris", "pack for a trip" + shorten Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add two new tools, bringing the total from 8 to 10:
google-maps-services-jstimezone().weather.googleapis.com). Requires Weather API enabled in Google Cloud Console.maps_weathercloses the only feature gap vs Google Grounding Lite (they had weather, we didn't).Changes
src/services/toolclass.ts— addgetWeather()andgetTimezone()methodssrc/services/PlacesSearcher.ts— add facade methods + response interfacessrc/tools/maps/timezone.ts— new tool definitionsrc/tools/maps/weather.ts— new tool definitionsrc/config.ts— register both tools with annotationssrc/cli.ts— add to exec modetests/smoke.test.ts— add timezone + weather tests (weather is non-blocking if API not enabled)README.md— update tool count, comparison table, tool list, project structureTest plan
npm run buildpassesnpm test— 94 passed, 0 failedexec timezonereturns Asia/Tokyo for Tokyo Tower coordinatesexec weatherreturns error gracefully if Weather API not yet enabled🤖 Generated with Claude Code