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.



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