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
| Name | Required | Description | Default |
|---|---|---|---|
| transactionId | Yes | The unique identifier for the transaction |
Implementation Reference
- src/index.ts:189-193 (handler)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}`); }
- src/index.ts:304-318 (schema)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), }, ], };
- src/index.ts:44-73 (schema)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; }; }; }