Class: TrakFlow::Mcp::Tools::LabelRemove

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

Instance Method Summary collapse

Methods inherited from BaseTool

with_database

Instance Method Details

#call(task_id:, name:) ⇒ Object



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

def call(task_id:, name:)
  self.class.with_database do |db|
    db.remove_label(task_id, name)

    { task_id: task_id, label: name, removed: true }
  end
end