create_credential
Creates a new n8n credential using a name, type, and data; retrieve the credential schema first to find the required fields.
Instructions
Create a new credential. Use get_credential_schema first to see required fields for the credential type.
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": "create_credential"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Credential data object with the required fields for this type | |
| name | Yes | Credential name | |
| type | Yes | Credential type (e.g. 'slackApi', 'githubApi') |