Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

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

NameRequiredDescriptionDefault
dataYesCredential data object with the required fields for this type
nameYesCredential name
typeYesCredential type (e.g. 'slackApi', 'githubApi')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.5/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are supplied, so the description carries the full disclosure burden. It implies a write operation but says nothing about required permissions, whether the credential data is encrypted or returned in responses, whether names must be unique, or whether creation is reversible. For a secrets-bearing mutation tool, that leaves material behavioral questions unanswered.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

Two short sentences with the action first and the prerequisite second; nothing is redundant or padded.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

It handles the hardest part of this tool, the free-form nested data object, by directing the agent to get_credential_schema. With no annotations and no output schema, however, the definition should still say what creation returns (an identifier, a masked secret?) and what access is needed.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100%, so name and type are already documented, and the schema itself notes that data holds the type-specific required fields. The description's added value is the pointer to get_credential_schema for discovering those fields. It does not add format or validation details beyond the schema's examples.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

States a specific verb and resource ('Create a new credential'), which cleanly separates it from update_credential, delete_credential, and list_credentials. It stops short of explicitly naming those siblings, but the intent is unambiguous.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

Gives actionable ordering guidance: call get_credential_schema first to learn the required fields for the chosen credential type. That is genuine workflow context rather than a bare restatement. It does not say when to prefer update_credential over creating a new one, nor what to do if a credential with the same name exists.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.