feat: add composite tools — explore-area, plan-route, compare-places#44
Merged
feat: add composite tools — explore-area, plan-route, compare-places#44
Conversation
BREAKING CHANGE: rename tools for consistent namespace: - search_nearby → maps_search_nearby - get_place_details → maps_place_details All 10 tools now use the maps_* prefix. CLI exec mode accepts both old and new names for backwards compatibility. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Three high-level tools that chain atomic tools internally: - maps_explore_area: geocode → search-nearby (multi-type) → place-details "What's around Tokyo Tower?" → categorized results with details in 1 call - maps_plan_route: geocode → distance-matrix → nearest-neighbor → directions "Visit these 5 places efficiently" → optimized route with legs in 1 call - maps_compare_places: search-places → place-details → distance-matrix "Which ramen shop near Shibuya?" → comparison table in 1 call Uses driving mode for route optimization (transit matrix returns nulls). Handles directions failures gracefully (marks leg as "unknown"). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
search-places exec timed out at 15s in CI. Increase to 30s. 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
Three high-level composite tools that replace manual multi-call chains:
maps_explore_areamaps_plan_routemaps_compare_placesNote: This PR is based on the namespace-unification branch (PR #43). Merge #43 first.
Test plan
npm run buildpassesnpm test— 94 passed, 0 failedexec explore-area— Tokyo Tower, 2 types, verified categorized resultsexec plan-route— 4 stops driving mode, correct optimized order + legsexec compare-places— "ramen near Shibuya" with ratings, phone, website🤖 Generated with Claude Code