create_client
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.
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "create_client",
"arguments": {
"businessName": "string",
"primaryRepresentativeId": "string"
}
}
}{
"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.