Skip to content

Client example proposal: host-side bounded retrieval over large tools/list catalogs #3617

Description

@JDeun

The current SDK docs make an important boundary explicit: servers should list tools normally and filtering is the host's job. That matches a validation experiment I am running with SchemaRouter, a typed capability/field retrieval layer.

I would like to contribute only a client-side example/benchmark, not a protocol or server change:

  1. fetch a deliberately large tools/list catalog with the normal Python SDK client;
  2. build/update a typed local capability index from those tool schemas;
  3. for each query retrieve a bounded relevant subset for host/model exposure;
  4. keep MCP sessions, notifications, tool calls, and server semantics unchanged;
  5. when ToolsListChanged arrives, refetch and refresh the index rather than assuming the delta.

The comparison would report required-tool recall, exposed schema/context size, unsupported-query rejection, and refresh behavior after tool-list changes.

Would this be appropriate as a client example/story in this repository, or should host-side tool selection examples live outside the SDK? I would wait for maintainer guidance before opening code.

Activity

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions