Skip to main content
Glama
buildwithgrove

Grove's MCP Server for Pocket Network

get_transaction_receipt

Retrieve transaction receipt details including status, gas used, and logs from multiple blockchains using Grove's MCP Server for Pocket Network.

Instructions

Get transaction receipt with status, gas used, and logs

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
blockchainYesBlockchain name
txHashYesTransaction hash
networkNoNetwork type (defaults to mainnet)

Implementation Reference

  • Executes the get_transaction_receipt tool: extracts parameters, calls AdvancedBlockchainService.getTransactionReceipt, formats JSON response, and sets error flag.
    case 'get_transaction_receipt': {
      const blockchain = args?.blockchain as string;
      const txHash = args?.txHash as string;
      const network = (args?.network as 'mainnet' | 'testnet') || 'mainnet';
    
      const result = await advancedBlockchain.getTransactionReceipt(blockchain, txHash, network);
    
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify(result, null, 2),
          },
        ],
        isError: !result.success,
      };
    }
  • Input schema defining parameters for get_transaction_receipt: blockchain, txHash (required), network (optional).
    inputSchema: {
      type: 'object',
      properties: {
        blockchain: {
          type: 'string',
          description: 'Blockchain name',
        },
        txHash: {
          type: 'string',
          description: 'Transaction hash',
        },
        network: {
          type: 'string',
          enum: ['mainnet', 'testnet'],
          description: 'Network type (defaults to mainnet)',
        },
      },
      required: ['blockchain', 'txHash'],
    },
  • Tool registration object defining name, description, and input schema for get_transaction_receipt.
    {
      name: 'get_transaction_receipt',
      description: 'Get transaction receipt with status, gas used, and logs',
      inputSchema: {
        type: 'object',
        properties: {
          blockchain: {
            type: 'string',
            description: 'Blockchain name',
          },
          txHash: {
            type: 'string',
            description: 'Transaction hash',
          },
          network: {
            type: 'string',
            enum: ['mainnet', 'testnet'],
            description: 'Network type (defaults to mainnet)',
          },
        },
        required: ['blockchain', 'txHash'],
      },
    },
  • Helper method that retrieves the blockchain service and calls the RPC method 'eth_getTransactionReceipt' with the transaction hash.
    async getTransactionReceipt(
      blockchain: string,
      txHash: string,
      network: 'mainnet' | 'testnet' = 'mainnet'
    ): Promise<EndpointResponse> {
      const service = this.blockchainService.getServiceByBlockchain(blockchain, network);
    
      if (!service) {
        return {
          success: false,
          error: `Blockchain service not found: ${blockchain} (${network})`,
        };
      }
    
      return this.blockchainService.callRPCMethod(
        service.id,
        'eth_getTransactionReceipt',
        [txHash]
      );
    }
  • src/index.ts:88-101 (registration)
    Main registration where registerTransactionHandlers is called to include transaction tools (including get_transaction_receipt) in the server's tool list.
    const tools: Tool[] = [
      ...registerBlockchainHandlers(server, blockchainService),
      ...registerDomainHandlers(server, domainResolver),
      ...registerTransactionHandlers(server, advancedBlockchain),
      ...registerTokenHandlers(server, advancedBlockchain),
      ...registerMultichainHandlers(server, advancedBlockchain),
      ...registerContractHandlers(server, advancedBlockchain),
      ...registerUtilityHandlers(server, advancedBlockchain),
      ...registerEndpointHandlers(server, endpointManager),
      ...registerSolanaHandlers(server, solanaService),
      ...registerCosmosHandlers(server, cosmosService),
      ...registerSuiHandlers(server, suiService),
      ...registerDocsHandlers(server, docsManager),
    ];
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries full burden. It mentions what data is returned (status, gas used, logs) but omits critical behavioral details like error handling, rate limits, authentication needs, or whether it's read-only. For a tool with no annotations, this leaves significant gaps in understanding its operation.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, efficient sentence that front-loads the purpose and key return fields without wasted words. Every element earns its place, making it easy to parse quickly.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given no annotations and no output schema, the description is incomplete. It lacks details on return format, error cases, or behavioral constraints, which are crucial for a tool interacting with blockchain data. The minimal description doesn't compensate for the missing structured information.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, so the schema fully documents parameters (blockchain, txHash, network). The description adds no additional meaning beyond implying txHash is used to fetch the receipt, aligning with the baseline score when schema does the heavy lifting.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the action ('Get') and resource ('transaction receipt'), specifying key return fields (status, gas used, logs). It distinguishes from siblings like 'get_transaction' by focusing on receipt details rather than transaction data, though it doesn't explicitly name alternatives.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance on when to use this tool versus alternatives like 'get_transaction' or 'get_block_details' is provided. The description implies usage for receipt-specific data but lacks explicit context or exclusions, leaving the agent to infer based on parameter requirements.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Install Server

Other Tools

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/buildwithgrove/mcp-pocket'

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