Skip to content

Provide tool description data classes as part of python sdk for runtime tool add/remove from python mcp servers #868

@scottslewis

Description

@scottslewis

Is your feature request related to a problem? Please describe.
I would like to add/remove tools dynamically from a server at runtime. This is necessary if creating/adding/removing tools dynamically exposed via other processes.

Describe the solution you'd like
A set of data classes to provide runtime access to Tool, ToolAnnotations, ToolParam standardized metadata (e.g. text descriptions, required/not required toolparams, ToolAnnotations, etc).

Describe alternatives you've considered
I've created a set of 'description' dataclasses that meet my needs here. Would be willing to contribute these classes if desired.

Additional context
It would be especially nice if these ToolDescription types were consistently available in all language versions of MCP servers. It would make server <-> server development much easier. I've also offered to provide these meta-data classes to the java sdk here.

I've described my specific Remote Tools use case. in README.md here

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