Skip to main content
Glama
Zetrix-Chain

Zetrix MCP Server

Official
by Zetrix-Chain

zetrix_get_transaction_history

Retrieve completed transaction records from the Zetrix blockchain using transaction hash or block sequence number to verify and analyze transaction history.

Instructions

Get completed transaction records

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
hashNoTransaction hash (optional)
ledgerSeqNoBlock sequence number (optional)

Implementation Reference

  • Core implementation of the getTransactionHistory method in ZetrixClient. Makes an HTTP GET request to the Zetrix RPC endpoint '/getTransactionHistory' with optional hash and ledgerSeq parameters, handles errors, and returns the result.
    async getTransactionHistory(hash?: string, ledgerSeq?: number): Promise<any> {
      try {
        const params: any = {};
        if (hash) params.hash = hash;
        if (ledgerSeq) params.ledger_seq = ledgerSeq;
    
        const response = await this.client.get("/getTransactionHistory", {
          params,
        });
    
        if (response.data.error_code !== 0) {
          throw new Error(
            response.data.error_desc || `API Error: ${response.data.error_code}`
          );
        }
    
        return response.data.result;
      } catch (error) {
        if (axios.isAxiosError(error)) {
          throw new Error(`Failed to get transaction history: ${error.message}`);
        }
        throw error;
      }
    }
  • Tool schema definition including name, description, and input schema for 'zetrix_get_transaction_history' used in MCP tools list.
    {
      name: "zetrix_get_transaction_history",
      description: "Get completed transaction records",
      inputSchema: {
        type: "object",
        properties: {
          hash: {
            type: "string",
            description: "Transaction hash (optional)",
          },
          ledgerSeq: {
            type: "number",
            description: "Block sequence number (optional)",
          },
        },
      },
    },
  • MCP server handler case for 'zetrix_get_transaction_history' tool. Extracts arguments, calls ZetrixClient.getTransactionHistory, and formats response as MCP content.
    case "zetrix_get_transaction_history": {
      const result = await zetrixClient.getTransactionHistory(
        args?.hash as string | undefined,
        args?.ledgerSeq as number | undefined
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
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 states 'Get completed transaction records,' implying a read-only operation, but lacks details on permissions, rate limits, pagination, or what 'completed' entails (e.g., confirmed vs. pending). This is a significant gap for a tool with no annotation coverage.

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

Conciseness4/5

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

The description is a single, efficient sentence with no wasted words. It's front-loaded with the core action, though it could be more structured by explicitly mentioning optional parameters or output format to improve clarity without sacrificing brevity.

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, no output schema, and a read operation with two parameters, the description is incomplete. It doesn't explain return values (e.g., list format, fields), error conditions, or how 'completed' is defined, leaving the agent under-informed for effective use.

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%, with both parameters ('hash' and 'ledgerSeq') documented as optional. The description doesn't add meaning beyond the schema (e.g., how parameters interact or default behavior), so it meets the baseline of 3 where the schema does the heavy lifting.

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

Purpose3/5

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

The description 'Get completed transaction records' clearly states the verb ('Get') and resource ('completed transaction records'), making the purpose understandable. However, it doesn't differentiate from sibling tools like 'zetrix_get_transaction' or 'zetrix_get_transaction_cache', which likely retrieve similar data, leaving ambiguity about when to use this specific tool.

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?

The description provides no guidance on when to use this tool versus alternatives. With siblings like 'zetrix_get_transaction' (likely for single transactions) and 'zetrix_get_transaction_cache' (possibly cached data), there's no indication of context, prerequisites, or exclusions, leaving the agent to guess based on tool names alone.

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/Zetrix-Chain/zetrix-mcp-server'

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