Dynamic tool dispatch beats hardcoded schemas
ArcGIS Pro ships roughly 2,500 geoprocessing tools. arcpyexposes all of them. The arcgis Python package adds hundreds more methods for AGOL operations. And Esri ships several new ones every quarter.
A naive AI-on-GIS product hardcodes a JSON Schema for each tool it supports. That works for the first ten. By the hundredth it has become a maintenance bog, and the day Esri ships Pro 3.7with a new arcpy.ia.SegmentAnythingV2 tool, the product either ignores it or ships an update.
AutoGeo doesn't do that. The catalog is generated at sidecar startup, server-cached by version fingerprint, and presented to AutoGeo AI as a per-domain subset. Adding a tool to arcpy adds it to AutoGeo. Updating Pro updates AutoGeo. There is no schema file to keep in sync.
How introspection works
For arcpy, the sidecar queries the installed runtime's own reflection APIs at startup — enumerating every available tool by name, description, and full typed parameter signature. No tool list is maintained by hand. The catalog is an accurate snapshot of what the local installation supports at that moment.
The same reflection approach covers the ArcGIS Python API across its relevant submodules. A small set of curated REST endpoints not covered by the Python package are added by hand for operations the package can't reach (Dashboards JSON, Experience Builder AppConfig, applyEdits, sharing). Total: thousands of tools across both runtimes.
The intent router
Thousands of tools is too many to put in a single AI tool list — even with prompt caching it's expensive context. So we route first. A lightweight routing model classifies the user's turn into one of six domains:
- analyze — buffer, intersect, summary stats
- edit — feature edits, schema changes, calc field
- publish — AGOL, web maps, StoryMaps
- symbolize — CIM JSON, renderers, labels, layouts
- raster — Spatial Analyst, Image Analyst, .dlpk
- admin — groups, sharing, org settings
Each question gets the right capability bundle for what was actually asked — no more, no less. That's how AutoGeo stays fast and focused even as the underlying toolset grows.
Fingerprinted catalogs, server-side cache
On startup the sidecar walks the catalog and hashes the sorted set of tool names + version metadata into a deterministic version fingerprint. It POSTs the catalog to the backend keyed by that fingerprint. Future chat calls only send the fingerprint — never the catalog itself. We cache by fingerprint, so two analysts on Pro 3.6 share one cached catalog. When Pro 3.7 comes out, the first analyst's sidecar reports a new fingerprint, the backend caches it, and every subsequent analyst on 3.7 hits the new cache.
Composite tools where they matter
Pure introspection isn't the whole story. Some sequences are common enough that we ship hand-written composite tools that collapse what would otherwise be 3-4 turns into one. The most common: "publish this layer to AGOL and create a web map with proper popups." That's:
- Build the Web Map JSON for a hosted feature service URL.
- Build the popupInfo block from the field list.
- POST to
/sharing/rest/content/users/owner/addItem. - Share with the right audience.
We expose one composite tool that does all four. The orchestrator picks it when the user asks for the whole package. Composite tools live in the same catalog as the introspected ones — the model doesn't know the difference.
What we get from this
- Forward compatibility. New Esri tools appear in the catalog automatically.
- Tiny per-call context. ~3-5 k tokens of tool schema instead of 40 k, all cacheable.
- Fewer regressions. No giant per-tool JSON files to keep correct against the upstream truth.
- A meaningful eval surface. The intent router and tool picker are tested against a 40-prompt regression suite that asserts intended behavior. We can make architectural changes to the orchestrator without fearing silent breakage.
Hardcoded tool schemas are a tax you keep paying. Introspection + per-turn filtering is a one-time investment that compounds.