Skip to main content
Glama
Zetrix-Chain

Zetrix MCP Server

Official
by Zetrix-Chain

zetrix_create_keypair

Generate a public-private key pair for testing purposes on the Zetrix blockchain, enabling secure account setup and transaction signing.

Instructions

Generate a new public-private key pair (for testing only)

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • src/index.ts:133-140 (registration)
    Tool registration including name, description, and input schema (empty object).
    {
      name: "zetrix_create_keypair",
      description: "Generate a new public-private key pair (for testing only)",
      inputSchema: {
        type: "object",
        properties: {},
      },
    },
  • Dispatch handler case that invokes ZetrixClient.createKeyPair() and formats response.
    case "zetrix_create_keypair": {
      const result = await zetrixClient.createKeyPair();
      return {
        content: [
          {
            type: "text",
            text: JSON.stringify(result, null, 2),
          },
        ],
      };
    }
  • TypeScript interface defining the output structure of the keypair.
    export interface ZetrixKeyPair {
      address: string;
      private_key: string;
      public_key: string;
      enc_type: string;
    }
  • Core handler implementation in ZetrixClient: makes RPC GET request to /createKeyPair endpoint, handles errors, and returns the generated keypair.
    async createKeyPair(): Promise<ZetrixKeyPair> {
      try {
        const response = await this.client.get("/createKeyPair");
    
        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 create key pair: ${error.message}`);
        }
        throw error;
      }
    }
Behavior2/5

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

No annotations are provided, so the description carries the full burden of behavioral disclosure. It mentions the tool generates a key pair and specifies it's 'for testing only', which hints at potential limitations (e.g., not for secure production use). However, it lacks details on what the output includes (e.g., format of keys, whether they're stored or transient), any rate limits, or security considerations, leaving significant gaps in transparency for a cryptographic tool.

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 key information ('Generate a new public-private key pair') and adds a crucial qualifier ('for testing only') without any wasted words. Every part of the sentence earns its place by clarifying purpose and usage context.

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

Completeness3/5

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

Given the tool has 0 parameters, no annotations, and no output schema, the description provides a basic understanding of purpose and limited usage context. However, for a cryptographic key generation tool, it lacks details on output format (e.g., whether it returns JSON with public/private keys), security implications, or how it differs from siblings, making it minimally viable but incomplete for safe and effective use.

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

Parameters4/5

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

The tool has 0 parameters, and the input schema has 100% description coverage (though empty). The description doesn't need to explain parameters, so it appropriately focuses on the tool's purpose. A baseline of 4 is applied as it compensates adequately for the lack of parameters by clearly stating what the tool does without unnecessary detail.

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 ('Generate') and resource ('new public-private key pair'), making the purpose evident. However, it doesn't distinguish this tool from its sibling 'zetrix_crypto_generate_keypair', which appears to serve a similar function, leaving room for confusion about why two separate tools exist.

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

Usage Guidelines3/5

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

The description includes 'for testing only', which implies a specific context of use (testing environments) and suggests it might not be suitable for production. However, it doesn't explicitly state when to use this tool versus alternatives like 'zetrix_crypto_generate_keypair' or provide clear exclusions, leaving usage guidance somewhat implied rather than explicit.

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