TransactionGet
Retrieve transaction details from RushDB's graph database by providing a transaction ID to access specific financial or data records.
Instructions
Get information about a transaction
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| transactionId | Yes | Transaction ID |
Implementation Reference
- tools/TransactionGet.ts:17-26 (handler)The core handler function implementing the TransactionGet tool. It fetches the transaction by ID from the database and returns its ID with a success message.export async function TransactionGet(params: { transactionId: string }) { const { transactionId } = params const transaction = await db.tx.get(transactionId) return { id: transaction.id, message: `Transaction information retrieved successfully` } }
- tools.ts:449-457 (schema)Schema definition for the TransactionGet tool, including input validation requiring a transactionId string.{ name: 'TransactionGet', description: 'Get information about a transaction', inputSchema: { type: 'object', properties: { transactionId: { type: 'string', description: 'Transaction ID' } }, required: ['transactionId'] } },
- index.ts:519-530 (registration)Registration and dispatch logic in the MCP server's CallToolRequest handler switch statement, which calls the TransactionGet handler.case 'TransactionGet': const transactionInfo = await TransactionGet({ transactionId: args.transactionId as string }) return { content: [ { type: 'text', text: JSON.stringify(transactionInfo, null, 2) } ] }