Skip to content

MCP: locate_bounding_boxes backend description names unavailable backends on local-only servers #33

Closed

Description

@ghchinoy

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.

Low priority, cosmetic.

Activity

  1. added
    enhancement
    on Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions