Create WP Credentials
create_wp_credentialsFor agents that make their own HTTP requests (scripts, Claude Code): WordPress REST API credentials for a Cloud for WordPress site. To edit content from here, use wordpress_request and wordpress_upload_media instead: they need no credentials. Mints a WordPress Application Password for the site so you can drive it over the WP REST API at https:///wp-json/ using HTTP Basic auth. The password is returned ONCE (WordPress stores only a hash) — save it immediately. Defaults to a dedicated least-privilege porkbun-agent user with the editor role (created on first use), which can manage content but cannot install code. role: "administrator" grants FULL site control including plugin installation (i.e. arbitrary code execution on the site) and therefore requires acknowledge_full_access: true — only request it if the user explicitly asked for admin-level access. The site must be provisioned and ACTIVE (poll get_hosting) — this works on any Cloud for WordPress site in the account however it was provisioned, but free $0 preview sites are excluded. Revoke any time with delete_wp_credentials. Rate limit: 20 mints per account per hour.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>"
},
"name": "create_wp_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Label shown in wp-admin (letters, digits, dashes), e.g. `Acme-Agent`. | |
| role | No | `editor` (default) = content only, recommended for agents. `administrator` = full control incl. plugin install; requires acknowledge_full_access. | |
| domain | Yes | Domain whose WordPress site to mint credentials for. | |
| dry_run | No | Validate without creating anything. | |
| acknowledge_full_access | No | Required when role=administrator: confirms the user understands the credential can run arbitrary code on the site. |