TransactionGet
Retrieve transaction details by providing the transaction ID to access specific transaction information in the graph database.
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 main handler function that executes the TransactionGet tool logic by retrieving the transaction from the database using the provided transactionId.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)The input schema and tool metadata definition for TransactionGet, used for validation and listing in MCP.{ 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 of the TransactionGet tool in the MCP server request handler switch statement.case 'TransactionGet': const transactionInfo = await TransactionGet({ transactionId: args.transactionId as string }) return { content: [ { type: 'text', text: JSON.stringify(transactionInfo, null, 2) } ] }