You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On a local-only server (dgem mcp --local, dgem serve --local), visionBackendChoicesSchema removes local (the local backend has no vision tower) and ends up with an empty list. applyBackendChoices (cmd/mcp_schema.go) returns early on an empty list, so locate_bounding_boxes keeps its static struct-tag description:
Optional inference backend selector: 'vertex_first' (default), 'vertex', or 'cloudrun' (note: 'local' Metal does not support SigLIP vision).
Agents on that server are told to use backends that don't exist. A call returns backend "vertex" is not enabled on this gateway (available: local), so nothing breaks, but the text is misleading. The other three tools correctly advertise only local.
Suggested fix: when the vision list is empty, set the description to something like "No vision-capable backend on this server ('local' has no vision tower); this tool returns an error", and possibly say so in the tool description so agents skip it. Keep the field without an enum (an empty enum is invalid for Gemini).
Test: extend TestMCPBackendSchemaListsOnlyConfiguredBackends (cmd/mcp_backend_schema_test.go) to assert that the local-only locate_bounding_boxes description doesn't name vertex_first.
Activity