Exception: MCP::ToolNotUnique
- Inherits:
-
StandardError
- Object
- StandardError
- MCP::ToolNotUnique
- Defined in:
- lib/mcp/server.rb
Instance Method Summary collapse
-
#initialize(duplicated_tool_names) ⇒ ToolNotUnique
constructor
A new instance of ToolNotUnique.
Constructor Details
#initialize(duplicated_tool_names) ⇒ ToolNotUnique
Returns a new instance of ToolNotUnique.
10 11 12 13 14 15 |
# File 'lib/mcp/server.rb', line 10 def initialize(duplicated_tool_names) super(" Tool names should be unique. Use `tool_name` to assign unique names to:\n \#{duplicated_tool_names.join(\", \")}\n MESSAGE\nend\n") |