n8n_get_credential_schema
Fetch JSON schema for any n8n credential type to reveal required fields before creating a credential.
Instructions
Fetch the JSON schema for a credential type via GET /credentials/schema/{credentialTypeName}. Returns the raw JSON Schema document describing the required data shape (e.g. freshdeskApi requires { apiKey, domain }). Use this BEFORE calling n8n_create_credential so you know what fields to populate. 404 on unknown type returns { ok: false, reason: 'not_found' }. 401 surfaces the admin/owner role requirement.
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": {
"credentialTypeName": "<credentialTypeName>"
},
"name": "n8n_get_credential_schema"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| credentialTypeName | Yes | n8n credential type name (e.g. 'githubApi', 'slackOAuth2Api'). |