Skip to main content
Glama

up_get_transaction

Retrieve detailed transaction information including amount, description, category, and account details using the transaction ID.

Instructions

Get detailed information about a specific transaction by ID, including amount, description, category, and related account.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
transactionIdYesThe unique identifier for the transaction

Implementation Reference

  • The core handler function that fetches the transaction details from the Up API using the provided transaction ID.
    async getTransaction( transactionId: string ): Promise<{ data: TransactionResource }> { return this.makeRequest(`/transactions/${transactionId}`); }
  • The input schema and metadata definition for the up_get_transaction tool, used for validation and listing.
    { name: "up_get_transaction", description: "Get detailed information about a specific transaction by ID, including amount, description, category, and related account.", inputSchema: { type: "object", properties: { transactionId: { type: "string", description: "The unique identifier for the transaction", }, }, required: ["transactionId"], }, },
  • src/index.ts:447-457 (registration)
    The switch case that registers and handles the execution of the up_get_transaction tool within the CallToolRequestHandler.
    case "up_get_transaction": { const args = request.params.arguments as { transactionId: string }; const result = await client.getTransaction(args.transactionId); return { content: [ { type: "text", text: JSON.stringify(result, null, 2), }, ], };
  • TypeScript interface defining the structure of a transaction resource returned by the API.
    interface TransactionResource { type: "transactions"; id: string; attributes: { status: "HELD" | "SETTLED"; rawText: string | null; description: string; message: string | null; isCategorizable: boolean; amount: MoneyObject; foreignAmount: MoneyObject | null; settledAt: string | null; createdAt: string; transactionType: string | null; }; relationships: { account: { data: { type: "accounts"; id: string; }; }; category: { data: { type: "categories"; id: string; } | null; }; }; }

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/alex1092/up-bank-mcp-server'

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