Create Checkout Link
create_checkout_sessionAccepts doola's Terms of Service (https://www.doola.com/terms-of-service) for the Starter package on the user's behalf and creates the Stripe checkout for the formation. Show the user the Terms of Service and send termsAccepted: true only once they agree. Returns pricing (the first-year list price: quote pricing.summary VERBATIM and never call it 'charged today'), chargeSummary (what Stripe charges today after any discount: quote it VERBATIM), checkoutUrl (paste it verbatim into your reply, never a placeholder), checkoutSessionId (what verify_payment checks), and companyId / companyName (the company being paid for: name it to the user). Refused with PRECONDITIONS_NOT_MET until start_formation has saved the name, country and company name. Formation flow, in order: start_formation, create_checkout_session, verify_payment, save_company_details (industries from search_industries), submit_formation. Each response's nextStep is the step the flow now waits on.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "create_checkout_session"
}
}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. | |
| 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. | |
| termsAccepted | No | true only after the user has seen the Terms of Service link and agreed to it. | |
| conversation_id | No | Optional, for analytics only. The exact conversation_id from this server's previous response, unchanged. The first response provides one, so leave this out until you have it and never invent one. Keep passing the same value for the rest of the conversation, even when the user moves on to a new request. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| code | No | Structured error code when error=true (e.g. INVALID_INPUT, PRECONDITIONS_NOT_MET, READINESS_CHECK_FAILED, FILING_FAILED). | |
| error | No | true if the call failed | |
| saved | No | What this call saved. | |
| message | No | Human-readable status. | |
| missing | No | Prerequisites still unmet, in flow order. Empty when only filing remains. | |
| pricing | No | First-year list price. Quote `summary` verbatim; never call it 'charged today'. | |
| nextStep | No | The step the formation flow now waits on; null once formation is complete. | |
| companyId | No | The company the call acted on. | |
| checkoutUrl | No | Stripe checkout link. Paste it verbatim into the reply. | |
| companyName | No | Name of the company the call acted on. Name it to the user. | |
| nextQuestion | No | The customer-facing question for nextStep; null once formation is complete. | |
| chargeSummary | No | What Stripe charges today, after any discount. Quote it verbatim. | |
| conversation_id | No | This conversation's handle. Pass it unchanged as conversation_id on every later call. | |
| checkoutSessionId | No | Pass it to verify_payment once the user has paid. |