n8n_create_credential
Creates a new credential in n8n using a name, type, and field data. Fetch the credential schema first to confirm required fields and avoid configuration errors.
Instructions
Create a new credential in n8n. Use n8n_get_credential_schema first to see required fields. On error, auto-fetches the schema as a hint.
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": {
"name": "<name>",
"type": "<type>",
"data": "<data>"
},
"name": "n8n_create_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Credential data fields (use n8n_get_credential_schema to see required fields) | |
| name | Yes | Display name for the credential | |
| type | Yes | Credential type (e.g. 'openAiApi', 'mongoDb') |