fix: align skill tool names with actual MCP names#52
Merged
Conversation
Tool names in all skill files now match actual MCP registration: - `geocode` → `maps_geocode`, `search-along-route` → `maps_search_along_route`, etc. - This was causing AI agents to fail to discover tools during testing Also added: - Known API Limitations section (weather unsupported in Japan/China/Korea, distance-matrix transit nulls in Japan) - Removed outdated "Future Composite Tools" section (all three are built) - Updated Recipe 7 to prefer maps_search_along_route over manual midpoint search Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Users can set GOOGLE_MAPS_ENABLED_TOOLS to a comma-separated list of
tool names to limit which tools are registered with the MCP client,
reducing context window usage for agents that only need a subset.
- Not set or "*" = all 17 tools enabled (default)
- "maps_geocode,maps_directions" = only those 2 tools registered
- If no tools match, falls back to all tools with an error log
Usage in MCP client config:
"env": { "GOOGLE_MAPS_ENABLED_TOOLS": "maps_geocode,maps_directions" }
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
c3251b9 to
21dc54f
Compare
Fixes: - GOOGLE_MAPS_GOOGLE_MAPS_ENABLED_TOOLS → GOOGLE_MAPS_ENABLED_TOOLS (replace_all accidentally doubled the prefix) - cli.ts startup log listed nonexistent tools (echo, get_place_details) - smoke.test.ts expectedTools missing 3 composite tools (147 tests now) - SKILL.md version 0.0.37 → 0.0.38 to match package.json - README Roadmap: removed skipped items (validate_address, isochrone), added recently completed tools and planned features Co-Authored-By: Claude Opus 4.6 (1M context) <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
Skill 文件裡的 tool 名稱(如
search-along-route)與實際 MCP 註冊名稱(maps_search_along_route)不一致,導致 AI agent 在測試中無法找到工具。Changes
maps_prefix + 底線)Also added
maps_weather不支援日本/中國/韓國,maps_distance_matrixtransit 模式在日本回 nullmaps_search_along_routeContext
在 6 組 travel-planning 實測中發現:AI 讀了 Skill 後搜尋
search-along-route,但實際 tool 名稱是maps_search_along_route,導致完全找不到工具,只能 fallback 到 midpointmaps_search_nearby。Test plan
🤖 Generated with Claude Code