Commit 24fc041
Fix bbox_tool validation error with explicit geometry format instructions
Addresses validation error where Claude was passing route geometry
incorrectly to bounding_box_tool, causing input schema validation failures.
Changes:
- Added explicit instructions for extracting route LineString coordinates
from directions_tool response as array of [lon, lat] pairs
- SHORT routes: Clarified buffer_tool input format and how to get bbox
from buffer polygon using bounding_box_tool
- MEDIUM routes: Added explicit bounding_box_tool usage instructions
with correct geometry format: {"geometry": [[lon1,lat1], [lon2,lat2], ...]}
- VERY LONG routes: Changed to use proximity parameter instead of bbox
to avoid coordinate extraction complexity
- Added bbox format specification for category_search_tool: "minLon,minLat,maxLon,maxLat"
This provides Claude with clear, unambiguous instructions about:
1. How to extract coordinates from directions response
2. Correct format for passing to buffer_tool and bounding_box_tool
3. How to use the resulting bbox with search tools
Fixes MCP error -32602 validation failures on Leesburg to Herndon route.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 3e79a07 commit 24fc041
1 file changed
+19
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
89 | | - | |
| 88 | + | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
97 | 101 | | |
98 | 102 | | |
99 | 103 | | |
100 | | - | |
101 | | - | |
102 | | - | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
103 | 108 | | |
104 | 109 | | |
105 | 110 | | |
106 | 111 | | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
111 | 118 | | |
112 | 119 | | |
113 | 120 | | |
| |||
0 commit comments