Exception: MCP::ToolNotUnique

Inherits:
StandardError
  • Object
show all
Defined in:
lib/mcp/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(duplicated_tool_names) ⇒ ToolNotUnique

Returns a new instance of ToolNotUnique.



13
14
15
16
17
18
# File 'lib/mcp/server.rb', line 13

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")