Store the Stripe TEST restricted key (rk_test_)
store_stripe_test_keyStores the site's ONE Stripe key in TEST mode: a restricted key (rk_test_…) from the project's env. Checked with Stripe; on a test-mode site not connected with “Connect with Stripe” it also connects Stripe (checks, fixes after the human approves, test runs); if connected, it only runs test runs. The human can revoke it on the dashboard. Live and sk_test_ keys are refused (the error says what to do). Never ask the human to paste a key into the chat.
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": "store_stripe_test_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| site | No | Site id (site_…). Optional when the account has exactly one site in this mode; list_sites shows them. | |
| type | No | Optional: "stripe_test" (the REST body's type; "stripe" is accepted too). Always stored as a Stripe TEST key. | |
| verbose | No | ||
| secret_key | No | rk_test_… key (required). Stored encrypted; never returned. | |
| confirm_account_mismatch | No | Human said yes |