Create agent checkout session
create_agent_checkout_sessionCreate a real Stripe Checkout session for buying Toofi internal credits. Returns a claim token so the agent can retrieve its key after payment.
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_agent_checkout_session"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| No | Alias for owner_email. | ||
| units | No | ||
| agent_id | No | Calling agent identifier. | |
| quote_id | No | Quote id from get_agent_billing_quote. | |
| clinic_id | No | Clinic identifier for mandate-scoped production execution. | |
| intent_id | No | Root agent intent id. | |
| tool_name | No | Tool name if quote_id is not supplied. | |
| mandate_id | No | Clinic or agent mandate id. Optional in public demo mode. | |
| product_id | No | Optional Toofi credit-pack product id. Defaults to the public agent credit pack. | |
| request_id | No | Idempotency and correlation id echoed in Toofi responses. | |
| return_url | No | Agent/client return URL after checkout. | |
| owner_email | No | Email used for receipt and backup delivery after Stripe payment. | |
| principal_id | No | Human or clinic principal on whose behalf the agent acts. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | No | ||
| mode | No | ||
| status | No | ||
| endpoint | No | ||
| timestamp | No |