class Riffer::Mcp::Tool
Base class for MCP-generated tools.
Public Class Methods
Source
# File lib/riffer/mcp/tool.rb, line 12 def self.mcp_server_tool_name @mcp_server_tool_name || raise(NotImplementedError, "#{self} must set @mcp_server_tool_name") end
Returns the unprefixed tool name used for tools/call on the MCP server.
Source
# File lib/riffer/mcp/tool.rb, line 20 def self.parameters_schema(strict: false) @input_schema || super end
Returns the server-published input schema, falling back to the params DSL. MCP schemas are server-defined, so strict is not applied to them.
Calls superclass method