{
  "service": "la_growth_machine",
  "displayName": "La Growth Machine",
  "categories": [
    "Marketing",
    "Data"
  ],
  "authTypes": [
    "api_key"
  ],
  "auth": [
    {
      "type": "api_key",
      "label": "API Key",
      "placeholder": "LGM_API_KEY",
      "description": "La Growth Machine API key sent with the Authorization: Bearer header. Create or view it in La Growth Machine API settings: https://app.lagrowthmachine.com/settings/api.",
      "extraFields": []
    }
  ],
  "homepageUrl": "https://lagrowthmachine.com",
  "actions": [
    {
      "id": "la_growth_machine.create_audience",
      "service": "la_growth_machine",
      "name": "create_audience",
      "description": "Create an empty La Growth Machine audience.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 100,
            "description": "Audience name to create."
          }
        },
        "additionalProperties": false,
        "description": "Input for creating a La Growth Machine audience."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "audience": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The La Growth Machine audience ID."
              },
              "name": {
                "type": "string",
                "description": "The audience name."
              },
              "leadsCount": {
                "type": "integer",
                "description": "The number of leads in the audience."
              }
            },
            "additionalProperties": true,
            "description": "A La Growth Machine audience."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A raw La Growth Machine object."
          }
        },
        "additionalProperties": false,
        "description": "Audience created by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.create_or_update_lead",
      "service": "la_growth_machine",
      "name": "create_or_update_lead",
      "description": "Create a La Growth Machine lead or update it when it already exists.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "audience": {
            "type": "string",
            "minLength": 1,
            "description": "Audience name where the lead should be created or updated."
          },
          "leadId": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Existing La Growth Machine lead ID to update."
          },
          "firstname": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead first name."
          },
          "lastname": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead last name."
          },
          "gender": {
            "type": "string",
            "enum": [
              "man",
              "woman"
            ],
            "description": "Lead gender."
          },
          "bio": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead biography."
          },
          "proEmail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead professional email address."
          },
          "persoEmail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead personal email address."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead company name."
          },
          "companyUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead company URL."
          },
          "linkedinUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead LinkedIn profile URL."
          },
          "jobTitle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead job title."
          },
          "profilePicture": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead profile picture URL."
          },
          "phone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead phone number."
          },
          "location": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead location."
          },
          "industry": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead industry."
          },
          "crm_id": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "External CRM ID for the lead."
          },
          "relationsCount": {
            "type": "number",
            "description": "Lead relationship count."
          },
          "twitter": {
            "type": "string",
            "minLength": 1,
            "maxLength": 255,
            "description": "Lead Twitter or X profile."
          },
          "customAttribute1": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 1."
          },
          "customAttribute2": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 2."
          },
          "customAttribute3": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 3."
          },
          "customAttribute4": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 4."
          },
          "customAttribute5": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 5."
          },
          "customAttribute6": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 6."
          },
          "customAttribute7": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 7."
          },
          "customAttribute8": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 8."
          },
          "customAttribute9": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 9."
          },
          "customAttribute10": {
            "type": "string",
            "minLength": 1,
            "maxLength": 1000,
            "description": "Custom lead attribute 10."
          },
          "excludeContactedLeads": {
            "type": "boolean",
            "description": "Whether La Growth Machine should skip leads that were already contacted."
          },
          "enrichData": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "Caller-provided enrichment data for the lead."
          },
          "enrichStatus": {
            "type": "string",
            "minLength": 1,
            "description": "Caller-provided enrichment status."
          }
        },
        "additionalProperties": false,
        "description": "Input for creating or updating a La Growth Machine lead.",
        "anyOf": [
          {
            "required": [
              "leadId"
            ]
          },
          {
            "required": [
              "proEmail"
            ]
          },
          {
            "required": [
              "persoEmail"
            ]
          },
          {
            "required": [
              "linkedinUrl"
            ]
          },
          {
            "required": [
              "twitter"
            ]
          },
          {
            "required": [
              "firstname",
              "lastname",
              "companyName"
            ]
          },
          {
            "required": [
              "firstname",
              "lastname",
              "companyUrl"
            ]
          }
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "lead": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The La Growth Machine lead ID."
              },
              "firstname": {
                "type": "string",
                "description": "The lead first name."
              },
              "lastname": {
                "type": "string",
                "description": "The lead last name."
              },
              "proEmail": {
                "type": "string",
                "description": "The lead professional email address."
              },
              "persoEmail": {
                "type": "string",
                "description": "The lead personal email address."
              },
              "companyName": {
                "type": "string",
                "description": "The lead company name."
              },
              "companyUrl": {
                "type": "string",
                "description": "The lead company URL."
              },
              "linkedinUrl": {
                "type": "string",
                "description": "The lead LinkedIn profile URL."
              },
              "status": {
                "type": "string",
                "description": "The lead status in La Growth Machine."
              }
            },
            "additionalProperties": true,
            "description": "A La Growth Machine lead."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A raw La Growth Machine object."
          }
        },
        "additionalProperties": false,
        "description": "Lead created or updated by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.get_audience_detail",
      "service": "la_growth_machine",
      "name": "get_audience_detail",
      "description": "Get detailed information about one La Growth Machine audience.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "audienceId": {
            "type": "string",
            "minLength": 24,
            "maxLength": 24,
            "description": "La Growth Machine audience MongoDB ObjectId.",
            "pattern": "^[0-9a-fA-F]{24}$"
          }
        },
        "additionalProperties": false,
        "description": "Input for retrieving a La Growth Machine audience."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "audience": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The La Growth Machine audience ID."
              },
              "name": {
                "type": "string",
                "description": "The audience name."
              },
              "leadsCount": {
                "type": "integer",
                "description": "The number of leads in the audience."
              }
            },
            "additionalProperties": true,
            "description": "A La Growth Machine audience."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A raw La Growth Machine object."
          }
        },
        "additionalProperties": false,
        "description": "Audience detail returned by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.get_audience_leads",
      "service": "la_growth_machine",
      "name": "get_audience_leads",
      "description": "List leads belonging to a La Growth Machine audience.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "audienceId": {
            "type": "string",
            "minLength": 24,
            "maxLength": 24,
            "description": "La Growth Machine audience MongoDB ObjectId.",
            "pattern": "^[0-9a-fA-F]{24}$"
          },
          "skip": {
            "type": "integer",
            "minimum": 0,
            "description": "Number of records to skip before returning the page."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "description": "Maximum number of records to return."
          }
        },
        "additionalProperties": false,
        "required": [
          "audienceId"
        ],
        "description": "Input for listing leads in a La Growth Machine audience."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The La Growth Machine lead ID."
                },
                "firstname": {
                  "type": "string",
                  "description": "The lead first name."
                },
                "lastname": {
                  "type": "string",
                  "description": "The lead last name."
                },
                "proEmail": {
                  "type": "string",
                  "description": "The lead professional email address."
                },
                "persoEmail": {
                  "type": "string",
                  "description": "The lead personal email address."
                },
                "companyName": {
                  "type": "string",
                  "description": "The lead company name."
                },
                "companyUrl": {
                  "type": "string",
                  "description": "The lead company URL."
                },
                "linkedinUrl": {
                  "type": "string",
                  "description": "The lead LinkedIn profile URL."
                },
                "status": {
                  "type": "string",
                  "description": "The lead status in La Growth Machine."
                }
              },
              "additionalProperties": true,
              "description": "A La Growth Machine lead."
            },
            "description": "Leads in the audience."
          },
          "total": {
            "anyOf": [
              {
                "type": "integer",
                "description": "Total number of matching audience leads, if returned."
              },
              {
                "type": "null"
              }
            ]
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A raw La Growth Machine object."
          }
        },
        "additionalProperties": false,
        "description": "Audience leads returned by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.list_audiences",
      "service": "la_growth_machine",
      "name": "list_audiences",
      "description": "List audiences in the authenticated La Growth Machine account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input for listing La Growth Machine audiences."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "audiences": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The La Growth Machine audience ID."
                },
                "name": {
                  "type": "string",
                  "description": "The audience name."
                },
                "leadsCount": {
                  "type": "integer",
                  "description": "The number of leads in the audience."
                }
              },
              "additionalProperties": true,
              "description": "A La Growth Machine audience."
            },
            "description": "La Growth Machine audiences."
          },
          "raw": {
            "type": "object",
            "properties": {},
            "additionalProperties": true,
            "description": "A raw La Growth Machine object."
          }
        },
        "additionalProperties": false,
        "description": "Audiences returned by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.list_members",
      "service": "la_growth_machine",
      "name": "list_members",
      "description": "List members in the authenticated La Growth Machine account.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {},
        "additionalProperties": false,
        "description": "Input for listing La Growth Machine members."
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "members": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The La Growth Machine member ID."
                },
                "name": {
                  "type": "string",
                  "description": "The member name."
                },
                "label": {
                  "type": "string",
                  "description": "The member display label."
                }
              },
              "additionalProperties": true,
              "description": "A La Growth Machine member."
            },
            "description": "La Growth Machine members."
          },
          "raw": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A raw La Growth Machine object."
                },
                "description": "Raw member array returned by La Growth Machine."
              },
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A raw La Growth Machine object."
              }
            ],
            "description": "Raw La Growth Machine members response."
          }
        },
        "additionalProperties": false,
        "description": "Members returned by La Growth Machine."
      }
    },
    {
      "id": "la_growth_machine.search_leads",
      "service": "la_growth_machine",
      "name": "search_leads",
      "description": "Search La Growth Machine leads by one or more documented criteria.",
      "requiredScopes": [],
      "providerPermissions": [],
      "inputSchema": {
        "type": "object",
        "properties": {
          "leadId": {
            "type": "string",
            "minLength": 1,
            "description": "La Growth Machine lead ID to search for."
          },
          "firstname": {
            "type": "string",
            "minLength": 1,
            "description": "Lead first name to search for."
          },
          "lastname": {
            "type": "string",
            "minLength": 1,
            "description": "Lead last name to search for."
          },
          "companyName": {
            "type": "string",
            "minLength": 1,
            "description": "Lead company name to search for."
          },
          "companyUrl": {
            "type": "string",
            "minLength": 1,
            "description": "Lead company URL to search for."
          },
          "linkedinUrl": {
            "type": "string",
            "minLength": 1,
            "description": "Lead LinkedIn profile URL to search for."
          },
          "linkedinId": {
            "type": "string",
            "minLength": 1,
            "description": "Lead LinkedIn ID to search for."
          },
          "linkedinPublicId": {
            "type": "string",
            "minLength": 1,
            "description": "Lead public LinkedIn ID to search for."
          },
          "email": {
            "type": "string",
            "minLength": 1,
            "description": "Lead email address to search for."
          },
          "location": {
            "type": "string",
            "minLength": 1,
            "description": "Lead location to search for."
          },
          "industry": {
            "type": "string",
            "minLength": 1,
            "description": "Lead industry to search for."
          },
          "crmId": {
            "type": "string",
            "minLength": 1,
            "description": "External CRM ID to search for."
          }
        },
        "additionalProperties": false,
        "description": "Input for searching La Growth Machine leads.",
        "anyOf": [
          {
            "required": [
              "leadId"
            ]
          },
          {
            "required": [
              "firstname"
            ]
          },
          {
            "required": [
              "lastname"
            ]
          },
          {
            "required": [
              "companyName"
            ]
          },
          {
            "required": [
              "companyUrl"
            ]
          },
          {
            "required": [
              "linkedinUrl"
            ]
          },
          {
            "required": [
              "linkedinId"
            ]
          },
          {
            "required": [
              "linkedinPublicId"
            ]
          },
          {
            "required": [
              "email"
            ]
          },
          {
            "required": [
              "location"
            ]
          },
          {
            "required": [
              "industry"
            ]
          },
          {
            "required": [
              "crmId"
            ]
          }
        ]
      },
      "outputSchema": {
        "type": "object",
        "properties": {
          "leads": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "description": "The La Growth Machine lead ID."
                },
                "firstname": {
                  "type": "string",
                  "description": "The lead first name."
                },
                "lastname": {
                  "type": "string",
                  "description": "The lead last name."
                },
                "proEmail": {
                  "type": "string",
                  "description": "The lead professional email address."
                },
                "persoEmail": {
                  "type": "string",
                  "description": "The lead personal email address."
                },
                "companyName": {
                  "type": "string",
                  "description": "The lead company name."
                },
                "companyUrl": {
                  "type": "string",
                  "description": "The lead company URL."
                },
                "linkedinUrl": {
                  "type": "string",
                  "description": "The lead LinkedIn profile URL."
                },
                "status": {
                  "type": "string",
                  "description": "The lead status in La Growth Machine."
                }
              },
              "additionalProperties": true,
              "description": "A La Growth Machine lead."
            },
            "description": "Matching La Growth Machine leads."
          },
          "tooManyResults": {
            "type": "boolean",
            "description": "Whether La Growth Machine found too many matches and needs narrower search criteria."
          },
          "raw": {
            "anyOf": [
              {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {},
                  "additionalProperties": true,
                  "description": "A raw La Growth Machine object."
                },
                "description": "Raw lead array returned by La Growth Machine."
              },
              {
                "type": "object",
                "properties": {},
                "additionalProperties": true,
                "description": "A raw La Growth Machine object."
              }
            ],
            "description": "Raw La Growth Machine search response."
          }
        },
        "additionalProperties": false,
        "description": "Leads matching the La Growth Machine search criteria."
      }
    }
  ]
}
