Skip to content

feat: add composite tools — explore-area, plan-route, compare-places#44

Merged
cablate merged 3 commits intomainfrom
feat/composite-tools
Mar 14, 2026
Merged

feat: add composite tools — explore-area, plan-route, compare-places#44
cablate merged 3 commits intomainfrom
feat/composite-tools

Conversation

@cablate
Copy link
Owner

@cablate cablate commented Mar 14, 2026

Summary

Three high-level composite tools that replace manual multi-call chains:

Tool Replaces Example
maps_explore_area geocode → search-nearby × N types → place-details "What's around Tokyo Tower?"
maps_plan_route geocode × N → distance-matrix → directions "Visit these 5 places efficiently"
maps_compare_places search-places → place-details × N → distance-matrix "Which ramen shop near Shibuya?"

Note: This PR is based on the namespace-unification branch (PR #43). Merge #43 first.

Test plan

  • npm run build passes
  • npm test — 94 passed, 0 failed
  • exec explore-area — Tokyo Tower, 2 types, verified categorized results
  • exec plan-route — 4 stops driving mode, correct optimized order + legs
  • exec compare-places — "ramen near Shibuya" with ratings, phone, website
  • Transit directions failure handled gracefully (marks as "unknown")
  • CI passes

🤖 Generated with Claude Code

cablate and others added 3 commits March 14, 2026 16:30
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>
@cablate cablate merged commit 6b77c3d into main Mar 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant