Class: Pgbus::MCP::Tools::RecurringTool

Inherits:
BaseTool
  • Object
show all
Defined in:
lib/pgbus/mcp/tools/recurring_tool.rb

Overview

Recurring task schedule with last-run / next-run times. Maps to DataSource#recurring_tasks. The :arguments field is not part of the list payload, so no redaction is needed here.

Class Method Summary collapse

Methods inherited from BaseTool

annotations_value, data_source_from, error_response, json_response, payloads_allowed?

Class Method Details

.call(server_context: nil) ⇒ Object



20
21
22
23
# File 'lib/pgbus/mcp/tools/recurring_tool.rb', line 20

def self.call(server_context: nil)
  data_source = data_source_from(server_context)
  json_response({ recurring_tasks: data_source.recurring_tasks })
end