Skip to main content
Glama
masridigital

Apollo.io MCP Server

by masridigital

create_account

Create a new organization account in Apollo.io by providing company details like name, domain, and contact information to establish a B2B sales presence.

Instructions

Create a new account/organization in Apollo with company details.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
nameYesCompany name
domainNoCompany domain
phone_numberNoCompany phone
website_urlNoWebsite URL

Implementation Reference

  • The handler function that implements the create_account tool. It sends a POST request to Apollo's /accounts endpoint with the provided arguments and returns a success message with the created account details.
    private async createAccount(args: any) {
      const response = await this.axiosInstance.post("/accounts", args);
      const account = response.data.account;
    
      return {
        content: [
          {
            type: "text",
            text: `Account created successfully!\nID: ${account.id}\nName: ${account.name}\nDomain: ${account.domain || "N/A"}`,
          },
        ],
      };
    }
  • Input schema for the create_account tool, defining the expected parameters: name (required), domain, phone_number, and website_url.
    inputSchema: {
      type: "object",
      properties: {
        name: {
          type: "string",
          description: "Company name",
        },
        domain: {
          type: "string",
          description: "Company domain",
        },
        phone_number: {
          type: "string",
          description: "Company phone",
        },
        website_url: {
          type: "string",
          description: "Website URL",
        },
      },
      required: ["name"],
    },
  • src/index.ts:516-542 (registration)
    Registration of the create_account tool in the getTools() array returned by ListToolsRequestSchema handler. Includes name, description, and input schema.
    {
      name: "create_account",
      description:
        "Create a new account/organization in Apollo with company details.",
      inputSchema: {
        type: "object",
        properties: {
          name: {
            type: "string",
            description: "Company name",
          },
          domain: {
            type: "string",
            description: "Company domain",
          },
          phone_number: {
            type: "string",
            description: "Company phone",
          },
          website_url: {
            type: "string",
            description: "Website URL",
          },
        },
        required: ["name"],
      },
    },
  • Dispatcher case in the CallToolRequestSchema handler that routes create_account calls to the createAccount method.
    case "create_account":
      return await this.createAccount(args);

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/masridigital/apollo.io-mcp'

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