Create n8n Credential
n8n_create_credentialCreate a new credential by providing a display name, type, and data. Fetch the credential schema beforehand to know exactly which fields are required.
Instructions
Create a new credential. Use n8n_get_credential_schema first to know required fields.
Args:
name (string): Credential display name
type (string): Credential type (e.g., 'githubApi', 'slackApi')
data (object): Credential data/secrets (specific to the credential type)
projectId (string?): Project to assign the credential to
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/secrets | |
| name | Yes | Credential display name | |
| type | Yes | Credential type (e.g., 'githubApi') | |
| projectId | No | Project ID to assign to |