I did some testing and noticed a mistake the url for the tracks refenecs of the MCP…
- User
I did some testing and noticed a mistake the url for the tracks refenecs of the MCP server should always go to simplemap.safecast.org not api.safecast.org. The api.safecast.org does not have track. All refences to api.safecast.org should go to simplemap.safecast.org. See below mistake.
- Data Availability The measurement data used in this report are openly available through the Safecast API and the Safecast MCP server. The specific track used (ID: 8i48KY) can be accessed at https://api.safecast.org. Safecast data are released under a Creative Commons CC0 public domain dedication.
Assistant
Let me find where track URLs are generated in the codebase.
Assistant
The URL isn't hardcoded — the model is hallucinating
api.safecast.orgbased on training data. The fix is to add explicit guidance in the tool descriptions so the model generates the correct URL. Let me find where track-related tool descriptions are defined.Assistant
The model is generating
api.safecast.orgfrom its training data — the fix is to add explicit URL guidance to thelist_tracksandget_tracktool descriptions. I'll update both.Assistant
Now let me also check
list_spectraandget_spectrumsince they may have the same issue:Assistant
That one doesn't generate track URLs so it's fine. The two changes above cover the primary issue. Now build to verify it compiles:
Assistant
Builds clean. Here's what was done:
Both tool_list_tracks.go and tool_get_track.go now have this guidance appended to their descriptions:
When referencing or linking to track data, ALWAYS use
https://simplemap.safecast.orgas the base URL — NEVER useapi.safecast.org, which does not host track data.Since the model reads tool descriptions as part of its context, this will steer it away from hallucinating
api.safecast.orgwhen citing or linking to tracks. You'll need to deploy for the fix to take effect on the live server.