MCPOutils MCP/Clients/create_client

create_client

Writeclients:write

Add a new client (a business your agency will manage) and run its onboarding automatically — it assigns a plan, sets up the client's customer-portal login, and computes an initial health score. You must provide three things: the business name, the client's primary contact email (this becomes their portal login and can't be changed later), and the id of the team member who will own the client. Optionally include Google Business details (get them from search_google_business) to fill in the profile, and a tracking keyword to start monitoring the client's local search rank. IMPORTANT: when you pass a placeId, this also creates the client's FIRST LOCATION from that Google place — which is what starts the listings, reviews and AEO work — and returns its id as `locationId`. Do not follow this with create_location_from_google or create_location for the same business: that would create a duplicate location. If you passed a placeId and `locationId` still comes back null, `locationSkipped` says why (for example `location_limit` means the agency is at its plan's location cap, and the client will have no listings or reviews until a location is added) — tell the user rather than retrying. Fails if a client with the same business name already exists (including an archived one — the error names its id so you can call reactivate_client instead of creating a new one). New clients are visible to your whole team. You don't pass an agency — it comes from your credentials.

Paramètres
businessNamestringobligatoire
The client's business name. Must be unique within your agency.
primaryContactEmailstringobligatoire
The client's primary contact email. Becomes their customer-portal login and cannot be changed later.
primaryRepresentativeIdstringobligatoire
The id of the team member who will own this client (their user id, from list_team_members).
websitestringfacultatif
The client's website URL.
industrystringfacultatif
The client's business category or industry (e.g. a Google Business category name).
goal"improve_rankings" | "get_reviews" | "fix_listings"facultatif
The client's primary goal: "improve_rankings", "get_reviews", or "fix_listings".
gbpLinkstringfacultatif
The client's Google Business Profile URL (from search_google_business).
placeIdstringfacultatif
The client's Google Place id (from search_google_business).
latitudenumberfacultatif
The client location's latitude (from search_google_business).
longitudenumberfacultatif
The client location's longitude (from search_google_business).
googleRatingnumberfacultatif
The client's current Google star rating, if known (from search_google_business).
googleReviewCountnumberfacultatif
The client's current Google review count, if known (from search_google_business).
trackingKeywordstringfacultatif
A keyword to track the client's local search rank for. Requires placeId, latitude, and longitude to also be set.
clientPlanIdstringfacultatif
Which customer-portal plan to assign. Omit to use your agency's default plan — there's currently no tool to look up other plan ids.
notesstringfacultatif
An internal note about the client — visible only to your team, never to the client.
Exemple de requête
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_client",
    "arguments": {
      "businessName": "string",
      "primaryContactEmail": "string",
      "primaryRepresentativeId": "string"
    }
  }
}
Exemple de réponse
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

La forme de la réponse est indicative — le contenu réel dépend de l'outil et de vos données.