Skip to main content
Glama

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
NameRequiredDescriptionDefault
transactionIdYesTransaction ID

Implementation Reference

  • 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` } }
  • 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) } ] }

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/1pxone/RushDB'

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