Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by r-ms

n8n_get_credential_schema

Retrieves the JSON schema for an n8n credential type, showing required fields, types, and defaults so you can prepare correct credential data before creation.

Instructions

Get the JSON schema for a credential type — shows required fields, types, and defaults. Use this before creating credentials to know exactly what data fields to pass.

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": {
      "typeName": "<typeName>"
    },
    "name": "n8n_get_credential_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNameYesCredential type (e.g. 'openAiApi', 'mongoDb', 'telegramApi', 'httpHeaderAuth')

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv0.1.0

TDQS

A4/5.0
Behavior3/5

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

No annotations are supplied, so the description carries the full burden. 'Get' plus the read-only nature of a schema lookup implies no side effects, and the description discloses the shape of the result, but it says nothing about behavior for an unknown typeName or whether errors are returned versus empty schemas.

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, front-loaded with the purpose and followed by the call condition. Every clause earns its place, with no restatement of the title or filler.

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

Completeness4/5

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

For a one-parameter read tool with no output schema, the description covers what the tool returns (fields, types, defaults) and why to call it. Only minor gaps remain, such as the handling of invalid type names, which is reasonable to omit at this complexity.

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?

The single parameter has 100% schema description coverage including four concrete type examples, so the schema already does the heavy lifting. The description reinforces that typeName is a credential *type* (not an instance id), which is a useful disambiguation, but adds no format or validation detail beyond the schema.

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

Purpose5/5

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

States a specific verb and resource ('Get the JSON schema for a credential type') and immediately says what the payload contains (required fields, types, defaults). This is clearly distinguishable from n8n_create_credential and n8n_list_credentials, which operate on credential instances rather than type definitions.

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?

Explicitly tells the agent when to call it: 'before creating credentials to know exactly what data fields to pass.' It ties itself to the create flow, giving clear context. It does not state any exclusions or failure conditions, which keeps it from a 5.

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