Class: TrakFlow::Mcp::Tools::DepRemove

Inherits:
BaseTool
  • Object
show all
Defined in:
lib/trak_flow/mcp/tools/dep_remove.rb

Instance Method Summary collapse

Methods inherited from BaseTool

with_database

Instance Method Details

#call(source_id:, target_id:) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/trak_flow/mcp/tools/dep_remove.rb', line 15

def call(source_id:, target_id:)
  self.class.with_database do |db|
    db.remove_dependency(source_id, target_id)

    { source_id: source_id, target_id: target_id, removed: true }
  end
end