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

  1. maxisbey commented on Oct 6, 2026

    @maxisbey
    Contributor

    Thanks for asking before writing any code. This one is better kept outside the SDK, so I'm going to close it as not planned.

    We'd like the examples in this repo to run on the SDK alone, with no third-party package, and to show how to use the SDK rather than how a host picks tools. As you say, tool selection is the host's job, so a benchmark for it fits better in your own repository.

    AI Disclaimer


    Generated by Claude Code

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