Create Vault Credential
vault_credential_createCreate a new credential in an agent vault. Pass type plus the matching payload block (login / card / identity / oauthToken / apiKey / certificate / notes). For login credentials, prefer generatePassword over supplying login.password — the vault generates and stores the password server-side and returns only the credential reference, so the secret never enters the conversation. For api_key/oauth_token credentials, set allowedHosts so the credential can be exercised through vault_credential_use.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| card | No | Card payload for card-type. | |
| name | Yes | Human-readable credential name. | |
| type | Yes | Credential type. | |
| login | No | Login payload for login-type. | |
| notes | No | Optional secure note text. | |
| apiKey | No | API key payload for api_key-type. | |
| fields | No | Optional custom fields. | |
| agentId | No | Agent ID that owns the new credential. Optional when using an agent-bound credential. | |
| favorite | No | Optional favorite flag. | |
| identity | No | Identity payload for identity-type. | |
| oauthToken | No | OAuth token payload for oauth_token-type. | |
| certificate | No | Certificate payload for certificate-type. | |
| revealPolicy | No | Reveal policy. 'brokered' means the plaintext is never returned by any read/reveal/export path — not even to the org master key; the secret is only usable via vault_credential_use (recovery = rotation). 'standard' keeps master-key reveal available outside MCP. | |
| generatePassword | No | Generate the login password server-side instead of supplying login.password. Preferred for login credentials: the password is created and stored inside the vault and never enters the conversation. Only valid for login-type; mutually exclusive with login.password. Pass {} for defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||