Class: RubyEventStore::MCP::Tools::Trace
- Inherits:
-
Object
- Object
- RubyEventStore::MCP::Tools::Trace
- Defined in:
- lib/ruby_event_store/mcp/tools/trace.rb
Instance Method Summary collapse
Instance Method Details
#call(event_store, args) ⇒ Object
25 26 27 28 29 |
# File 'lib/ruby_event_store/mcp/tools/trace.rb', line 25 def call(event_store, args) events = events_for(event_store, args.fetch("correlation_id")) return "(no events found for correlation ID #{args.fetch("correlation_id")})" if events.empty? build_tree(events) end |
#name ⇒ Object
7 8 9 |
# File 'lib/ruby_event_store/mcp/tools/trace.rb', line 7 def name "trace" end |
#schema ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/ruby_event_store/mcp/tools/trace.rb', line 11 def schema { name: name, description: "Show the causation tree for all events sharing a correlation ID", inputSchema: { type: "object", properties: { correlation_id: { type: "string", description: "Correlation ID (UUID)" } }, required: ["correlation_id"] } } end |