From aec851cae102200558adc782e8239efa2ec8e968 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?SenaRinka=20/=20=E9=99=B6=E9=9F=B3=E3=81=BE=E3=81=AE?= Date: Tue, 16 Jun 2026 22:52:39 +0800 Subject: [PATCH] Add transaction name to get_transactions MCP tool output (#2026) * fix(assistant): include transaction name in get_transactions MCP output get_transactions already loads `entry = txn.entry` but only emits `merchant`, which is null unless a merchant is assigned. As a result MCP clients receive transactions with no identifying name. Add `entry.name` (the description shown in the UI and returned by the REST API) at zero extra query cost. * fix(assistant): include transaction name in get_transactions MCP output get_transactions already loads `entry = txn.entry` but only emits `merchant`, which is null unless a merchant is assigned. As a result MCP clients receive transactions with no identifying name. Add `entry.name` (the description shown in the UI and returned by the REST API) at zero extra query cost. --- app/models/assistant/function/get_transactions.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/models/assistant/function/get_transactions.rb b/app/models/assistant/function/get_transactions.rb index 853f39e80..5af66048c 100644 --- a/app/models/assistant/function/get_transactions.rb +++ b/app/models/assistant/function/get_transactions.rb @@ -155,6 +155,7 @@ class Assistant::Function::GetTransactions < Assistant::Function normalized_transactions = paginated_transactions.map do |txn| entry = txn.entry { + name: entry.name, date: entry.date, amount: entry.amount.abs, currency: entry.currency,