Skip to main content
Glama
Zetrix-Chain

Zetrix MCP Server

Official
by Zetrix-Chain

zetrix_crypto_get_address

Convert a Zetrix public key into its corresponding blockchain address for account operations and transaction processing.

Instructions

Get Zetrix address from public key

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
publicKeyYesThe public key

Implementation Reference

  • Handler for the zetrix_crypto_get_address tool. Extracts the publicKey argument and delegates to ZetrixEncryption.getAddressFromPublicKey method.
    case "zetrix_crypto_get_address": {
      if (!args) {
        throw new Error("Missing arguments");
      }
      const address = await zetrixEncryption.getAddressFromPublicKey(
        args.publicKey as string
      );
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify({ address }, null, 2),
          },
        ],
      };
    }
  • src/index.ts:550-563 (registration)
    Tool registration entry including name, description, and input schema.
    {
      name: "zetrix_crypto_get_address",
      description: "Get Zetrix address from public key",
      inputSchema: {
        type: "object",
        properties: {
          publicKey: {
            type: "string",
            description: "The public key",
          },
        },
        required: ["publicKey"],
      },
    },
  • Core helper method in ZetrixEncryption class that computes the Zetrix address from a given public key using the official zetrix-encryption-nodejs library.
    async getAddressFromPublicKey(publicKey: string): Promise<string> {
      await this.initEncryption();
    
      try {
        return this.KeyPair.getAddress(publicKey);
      } catch (error) {
        throw new Error(
          `Failed to derive address: ${error instanceof Error ? error.message : String(error)}`
        );
      }
    }
  • Input schema definition specifying the required publicKey parameter.
    inputSchema: {
      type: "object",
      properties: {
        publicKey: {
          type: "string",
          description: "The public key",
        },
      },
      required: ["publicKey"],
    },
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 for behavioral disclosure. While 'Get' implies a read-only operation, the description doesn't specify whether this involves network calls, cryptographic computation, rate limits, error conditions, or what format the address will be in. For a cryptographic tool with zero annotation coverage, this minimal description leaves important behavioral aspects undocumented.

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 states the core purpose without any wasted words. It's appropriately sized for this simple tool and gets straight to the point with zero unnecessary information.

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 this is a cryptographic conversion tool with no annotations and no output schema, the description is insufficiently complete. It doesn't explain what format the address will be in (hex, base58, etc.), whether this is a deterministic computation or involves lookups, or what happens with invalid public keys. For a tool that performs cryptographic operations, more context is needed.

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 the single parameter 'publicKey' well-documented in the schema. The description adds no additional parameter information beyond what's already in the structured schema. According to the scoring rules, when schema coverage is high (>80%), the baseline is 3 even with no param info in the description.

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 tool's purpose as 'Get Zetrix address from public key', which is a specific verb+resource combination. It distinguishes itself from sibling tools like 'zetrix_crypto_get_public_key' (which goes in the opposite direction) and 'zetrix_get_account' (which might retrieve account info by address). However, it doesn't explicitly differentiate from all siblings, such as 'zetrix_create_keypair' which might also produce addresses.

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. It doesn't mention prerequisites (e.g., needing a public key first), when this conversion is necessary, or what to do if you already have an address. With many sibling tools available, this lack of contextual guidance is a significant gap.

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