post_v1_cloud_provider_accounts
Links one of the caller org's cloud accounts and folds the Kubernetes clusters it finds there into the ONE Hanzo fleet, so they appear at /v1/clusters and can run work like any managed or…
Links one of the caller org's cloud accounts and folds the Kubernetes clusters it finds there into the ONE Hanzo fleet, so they appear at /v1/clusters and can run work like any managed or bring-your-own cluster. Answers 201.
The credential is verified LIVE against the provider BEFORE anything is stored, so a bad one is refused and nothing is written; it is then sealed in the org's own KMS namespace and never appears in a response, the account index, or a log line. Discovery follows, and a cluster that fails to fold is reported as DATA in the clusters list rather than failing the link.
Re-linking a label that already exists re-seals its credential and re-folds it, so this is how a rotated token is replaced. Requires org admin.
| Tool | post_v1_cloud_provider_accounts |
| Door | https://api.hanzo.ai/v1/mcp |
| Method | tools/call (JSON-RPC 2.0) |
| Arguments | 12 |
| Operation | POST /v1/cloud/{provider}/accounts |
| Product | cloud |
Arguments
| Field | Type | Required | Default | Values | Description |
|---|---|---|---|---|---|
clientId | string | — | — | — | ClientID is the Azure AD application id. Azure only. |
clientSecret | string | — | — | — | ClientSecret selects the service-principal flow. LEAVING IT OUT selects keyless workload identity federation instead, so omitting it is a choice rather than an omission. Azure only. |
credentialJson | string | — | — | — | CredentialJSON is a Google credentials document — an external_account (workload identity federation, keyless) or a service-account key. GCP only. |
externalId | string | — | — | — | ExternalID pins that role assumption to Hanzo, which is what closes the confused-deputy hole. AWS only. |
label | string | — | — | — | Label is the org-chosen name for this account within the provider, which is how a second account at the same provider is addressed later. Empty means "default"; anything outside 1–64 of [A-Za-z0-9._-] is refused. |
projectIds | string[] | — | — | — | ProjectIDs bounds the GKE cluster sweep. GCP only. |
provider | string | — | — | — | Provider is the cloud being linked, from the path: digitalocean, aws, gcp or azure. |
regions | string[] | — | — | — | Regions bounds the AWS EKS cluster sweep. AWS only. |
roleArn | string | — | — | — | RoleARN is the AWS role Hanzo assumes into the account — the keyless path, so no access key is ever stored. |
subscriptionIds | string[] | — | — | — | SubscriptionIDs bounds the AKS cluster sweep. Azure only. |
tenantId | string | — | — | — | TenantID is the Azure AD tenant of the app. Azure only. |
token | string | — | — | — | Token is the DigitalOcean personal access token. DigitalOcean only, and it is the one provider that requires storing a secret. |
tools/list declares a type and a description for each field and nothing further. A — means neither the door nor that operation constrains the field.
Call it
A tools/call carries every argument in one flat object — nothing binds to a path or a query string. Nothing above is required, so every declared argument is shown rather than a guess at which matter.
curl -X POST https://api.hanzo.ai/v1/mcp \
-H "Authorization: Bearer $HANZO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "post_v1_cloud_provider_accounts",
"arguments": {
"clientId": "<clientId>",
"clientSecret": "<clientSecret>",
"credentialJson": "<credentialJson>",
"externalId": "<externalId>",
"label": "<label>",
"projectIds": [
"<projectIds>"
],
"provider": "<provider>",
"regions": [
"<regions>"
],
"roleArn": "<roleArn>",
"subscriptionIds": [
"<subscriptionIds>"
],
"tenantId": "<tenantId>",
"token": "<token>"
}
}
}'Values are the operation's own defaults and enumerated values where it declares them, and a <placeholder> where neither source declares one. tools/list needs no credential; tools/call does — called without one the door answers HTTP 200 with a JSON-RPC result whose isError is set and whose text says what was missing. How to get a key →
The operation behind it
| Operation | Route | Product | Summary |
|---|---|---|---|
cloud_post_v1_cloud_provider_accounts | POST /v1/cloud/{provider}/accounts | cloud | Links one of the caller org's cloud accounts and folds the Kubernetes clusters it finds… |
The same capability over plain HTTP is in the cloud API reference, on https://api.hanzo.ai.
All 833 tools · The door · API reference
Generated from tools/list on https://api.hanzo.ai/v1/mcp — 833 tools captured 2026-08-01 (this build read the vendored copy; the door was unreachable).
How is this guide?
post_v1_bots_runId_stop
Stop terminates one of the caller org's own bot runs and reports its terminal state.
post_v1_cloud_provider_accounts_label_sync
Re-discovers one already-linked cloud account and reconciles what it folded: kubeconfigs are refreshed, clusters that appeared since the last sync are folded, and clusters this account folded that…