Class: RubyEventStore::MCP::Tools::EventShow

Inherits:
Object
  • Object
show all
Defined in:
lib/ruby_event_store/mcp/tools/event_show.rb

Instance Method Summary collapse

Instance Method Details

#call(event_store, args) ⇒ Object



27
28
29
30
# File 'lib/ruby_event_store/mcp/tools/event_show.rb', line 27

def call(event_store, args)
  event = event_store.read.event!(args.fetch("event_id"))
  format_event(event)
end

#nameObject



9
10
11
# File 'lib/ruby_event_store/mcp/tools/event_show.rb', line 9

def name
  "event_show"
end

#schemaObject



13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/ruby_event_store/mcp/tools/event_show.rb', line 13

def schema
  {
    name: name,
    description: "Show full event details including data, metadata, and timestamps",
    inputSchema: {
      type: "object",
      properties: {
        event_id: { type: "string", description: "Event ID (UUID)" }
      },
      required: ["event_id"]
    }
  }
end