create_credential
Create credentials for n8n workflows with automatic validation against type-specific schemas. Provide name, type, and data to store access tokens and connection details.
Instructions
Create a new credential with automatic validation against schema
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 - fields depend on type schema (e.g., {"accessToken": "ghp_..."}) | |
| name | Yes | Friendly name for the credential (e.g., "My GitHub Account") | |
| type | Yes | Credential type (use get_credential_schema to see required fields) | |
| nodesAccess | No | Optional: Restrict credential to specific node types |