Skip to main content
Glama

get_account_balance

Check your current account balance to manage domain purchases and renewals through the Dynadot registrar.

Instructions

Check the current account balance available for domain purchases and renewals.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The registration and handler definition for the get_account_balance tool.
    server.tool(
      "get_account_balance",
      "Check the current account balance available for domain purchases and renewals.",
      {},
      async () => {
        try {
          const result = await client.getAccountBalance();
          return {
            content: [
              { type: "text" as const, text: JSON.stringify(result, null, 2) },
            ],
          };
        } catch (error) {
          const msg = error instanceof Error ? error.message : String(error);
          return {
            content: [
              { type: "text" as const, text: `Failed to get balance: ${msg}` },
            ],
            isError: true,
          };
        }
      }
    );
  • The DynadotClient helper method that actually makes the API call.
    async getAccountBalance(): Promise<DynadotResponse> {
      return this.call("get_account_balance");
    }

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/mikusnuz/dynadot-mcp'

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