Skip to main content
Glama
n8n MCP Server

n8n MCP Server

by fedealvarez

get_credential_schema

Retrieve the schema and field definitions for a specific credential type, such as slackApi or githubApi, to understand required fields for configuration.

Instructions

Get the schema/field definition for a specific credential type (e.g. 'slackApi', 'githubApi').

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": "get_credential_schema"
  }
}

Input Schema

NameRequiredDescriptionDefault
typeNameYesCredential type name

Schema Changelog

Changes observed during successful MCP inspections.

  1. First observedv1.0.0

TDQS

A3.6/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, and it does establish that this is a passive read ('Get') with no mutation or side effects. It says nothing about what happens with an unknown or misspelled typeName (empty result vs. error) or whether results are cached, which are the main behavioral questions for a lookup tool.

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?

A single sentence that front-loads the action and resource, then folds the format hint into a parenthetical example. Nothing is padded and nothing needs reordering.

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?

The tool has no output schema, yet its entire return value is a schema/field definition, and the description never hints at that object's shape (field names, types, required flags). One parameter with full schema coverage keeps the input side complete, but the output side is left for the agent to discover at call time.

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

Parameters4/5

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

Schema description coverage is 100%, so baseline is 3, and the description earns the extra point by adding format guidance the schema lacks: the examples 'slackApi' and 'githubApi' show that typeName is a camelCase identifier rather than a display label. That materially reduces the chance of passing something like 'Slack API' and getting no result.

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: 'Get the schema/field definition for a specific credential type,' with concrete example type names. It is clearly a metadata lookup rather than the credential CRUD siblings, though it never names which sibling to use instead when the agent actually wants the credential's contents rather than its schema.

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

Usage Guidelines3/5

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

Usage is only implied: an agent can infer this is the discovery step before create_credential or update_credential, since you need field names to populate those calls. There is no explicit when-to-use, when-not-to-use, or named alternative, so an agent must reason about the sequencing itself.

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