Skip to content

feature: AddTools logic should handle duplicated tool names #390

Open
@edwardcqian

Description

@edwardcqian

Problem Statement

Currently one can override tools by accidentally adding two tools with the same name (e.g. typo in tool name causing two tools have the same name). It just silently overrides the duplicated tools.

Proposed Solution

There should at least be some warning or error message when attempting to add a tool which already exist in s.tools

Alternatives/Workarounds Considered

Alternative can just be to check for duplicate tool names while initializing the MCPServer.

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