Skip to main content
Glama

_find_transaction_by_id

Locate specific transactions using their unique ID and ID type within the MCP YNAB Server, enabling precise retrieval and management of financial data.

Instructions

Find a transaction by its ID and ID type.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
id_typeYes
transaction_idYes
transactionsYes

Implementation Reference

  • Helper function that implements the logic to find a transaction by ID, import_id, transfer_transaction_id, or matched_transaction_id.
    def _find_transaction_by_id( transactions: List[TransactionDetail], transaction_id: str, id_type: str ) -> Optional[TransactionDetail]: """Find a transaction by its ID and ID type.""" for txn in transactions: if ( (id_type == "id" and txn.id == transaction_id) or (id_type == "import_id" and txn.import_id == transaction_id) or ( id_type == "transfer_transaction_id" and txn.transfer_transaction_id == transaction_id ) or ( id_type == "matched_transaction_id" and txn.matched_transaction_id == transaction_id ) ): return txn return None

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Meh-S-Eze/ynab-mcp-client2'

If you have feedback or need assistance with the MCP directory API, please join our Discord server