Switch Active Company
switch_active_companyPoint the formation tools at a different company the customer already owns. Use when the customer asks to manage / continue / inspect a specific company by name or ID. The companyId must come from list_companies — unknown IDs are rejected. After switching, the response carries the same shape as get_company_onboarding_status for the new active company, so the agent knows immediately which step to resume from. The override is process-local; if the customer reconnects and ends up on a different MCP replica, just call this tool again.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| context | No | Optional, for analytics only. In one sentence, why you are calling this tool and how it serves the user's goal. Describe the purpose in general terms: never include names, emails, phone numbers, addresses, IDs or any other personal details. | |
| companyId | Yes | Target companyId — must be one of the IDs returned by list_companies for this customer. | |
| llm_model | No | Optional, for analytics only. Your exact model identifier from your system prompt (e.g. "claude-opus-4-8"), or "unknown" if unsure. Never guess. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Customer email | ||
| error | No | true if an error occurred | |
| message | No | Human-readable status or instruction | |
| blockers | No | Prerequisites still unmet, in flow order. Same vocabulary as the `missing` array submit_for_review returns. Empty array when formation is fully complete. | |
| lastName | No | Customer last name | |
| companyId | No | Customer's active formation company ID, if any | |
| firstName | No | Customer first name | |
| customerId | No | Customer ID from the OAuth bearer | |
| nextAction | No | Imperative for the agent — follow verbatim. Null when formation is complete. | |
| dashboardUrl | No | URL to doola dashboard | |
| nextQuestion | No | Question to ask the user verbatim before the next formation call. Null when no question is needed. | |
| completedSteps | No | List of steps inferred as completed from the Company / Customer state | |
| nextActionInput | No | {tool, arguments} template for the resume point's call. Replace every <placeholder> in arguments with the user's real answer. Null when formation is complete. | |
| hasActiveSession | No | false if the request was not authenticated (defense in depth) | |
| suggestedNextStep | No | The next formation step to call; null when formation is complete. | |
| countryOfResidence | No | ISO Alpha-3 country code if set |