MCPMCP-Tools/Kunden/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. Provide the business name and the id of the team member who will own the client (it defaults to the person adding it); the primary contact email is optional (it becomes their portal login and can't be changed once set). The same rules as Synup's Add client form apply: a plain-text name of up to 200 characters, a real website (a scheme is added to a bare domain, short links are expanded), a goal from the list, a rating of 0–5 and a whole review count, a note of up to 10,000 characters, a plan from list_client_plans, and — for a member rather than an owner or admin — only themselves as representative and only public visibility. 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: find that one with list_clients and archived: "archived", and offer to restore it with reactivate_client instead of creating a new one. Also refused while the account is serving out a cancellation or is closed. Errors are written for the user and can be passed on as they are. You don't pass an agency — it comes from your credentials.

Parameter
businessNamestringerforderlich
The client's business name (plain text, up to 200 characters). Must be unique within your agency.
primaryContactEmailstringoptional
Optional. The client's primary contact email — becomes their customer-portal login. Omit it to create the client before anyone is ready to be invited; it can be filled in ONCE later with update_client, and cannot be changed after that. Needed before invite_client.
primaryRepresentativeIdstringerforderlich
The id of the team member who will own this client (their user id, from list_team_members). Defaults to the person adding it when there is one.
websitestringoptional
The client's website URL.
industrystringoptional
The client's business category or industry (e.g. a Google Business category name).
goal"improve_rankings" | "get_reviews" | "fix_listings"optional
The client's primary goal: "improve_rankings", "get_reviews", or "fix_listings".
gbpLinkstringoptional
The client's Google Business Profile URL (from search_google_business).
placeIdstringoptional
The client's Google Place id (from search_google_business).
latitudenumberoptional
The client location's latitude (from search_google_business).
longitudenumberoptional
The client location's longitude (from search_google_business).
googleRatingnumberoptional
The client's current Google star rating, 0–5, if known (from search_google_business).
googleReviewCountnumberoptional
The client's current Google review count, a whole number, if known (from search_google_business).
trackingKeywordstringoptional
A keyword (up to 200 characters) to track the client's local search rank for. Requires placeId, latitude, and longitude to also be set.
clientPlanIdstringoptional
Which customer-portal plan to assign. Omit to use your agency's default plan; list_client_plans shows the plans you can pick from. Any other id is refused.
notesstringoptional
An internal note about the client (up to 10,000 characters) — visible only to your team, never to the client.
visibility"public" | "private"optional
"public" (default): every member of your agency can see the client. "private": only people granted access can — the representative you name in primaryRepresentativeId and, when a person is acting (an OAuth user, an API key's creator), that person; it is created private from the start, never public first. Only an owner or admin can create a private client; a member's comes out public, as in the app. Granting other people access is done in the app (Clients → the client → Access).
Beispielanfrage
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "create_client",
    "arguments": {
      "businessName": "string",
      "primaryRepresentativeId": "string"
    }
  }
}
Beispielantwort
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "content": [
      {
        "type": "text",
        "text": "..."
      }
    ]
  }
}

Die Antwortform dient nur zur Veranschaulichung — der tatsächliche Inhalt hängt vom Tool und Ihren Daten ab.