Skip to main content
Glama

create-users

Add one or multiple users to your MCP- N8N instance by specifying email and role. Simplify user management with structured input for client ID and user details.

Instructions

Create one or more users in your instance.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientIdYes
usersYes

Implementation Reference

  • Executes the create-users tool by retrieving the N8nClient instance using clientId and calling its createUsers method with the users array.
    case "create-users": {
      const { clientId, users } = args as { 
        clientId: string; 
        users: Array<{ 
          email: string; 
          role?: 'global:admin' | 'global:member'
        }> 
      };
      const client = clients.get(clientId);
      if (!client) {
        return {
          content: [{
            type: "text",
            text: "Client not initialized. Please run init-n8n first.",
          }],
          isError: true
        };
      }
    
      try {
        const result = await client.createUsers(users);
        return {
          content: [{
            type: "text",
            text: JSON.stringify(result, null, 2),
          }]
        };
      } catch (error) {
        return {
          content: [{
            type: "text",
            text: error instanceof Error ? error.message : "Unknown error occurred",
          }],
          isError: true
        };
      }
    }
  • Input schema definition for the create-users tool, specifying clientId and users array with email (required) and optional role.
    inputSchema: {
      type: "object",
      properties: {
        clientId: { type: "string" },
        users: {
          type: "array",
          items: {
            type: "object",
            properties: {
              email: { type: "string" },
              role: { 
                type: "string",
                enum: ["global:admin", "global:member"]
              }
            },
            required: ["email"]
          }
        }
      },
      required: ["clientId", "users"]
    }
  • src/index.ts:566-589 (registration)
    Registration of the create-users tool in the ListToolsRequestSchema handler's tools array, including name, description, and input schema.
    {
      name: "create-users",
      description: "Create one or more users in your instance.",
      inputSchema: {
        type: "object",
        properties: {
          clientId: { type: "string" },
          users: {
            type: "array",
            items: {
              type: "object",
              properties: {
                email: { type: "string" },
                role: { 
                  type: "string",
                  enum: ["global:admin", "global:member"]
                }
              },
              required: ["email"]
            }
          }
        },
        required: ["clientId", "users"]
      }
  • N8nClient helper method that performs the POST request to the /users endpoint to create the users.
    async createUsers(users: Array<{ email: string; role?: 'global:admin' | 'global:member' }>): Promise<any> {
      return this.makeRequest('/users', {
        method: 'POST',
        body: JSON.stringify(users),
      });
    }
Behavior2/5

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

With no annotations provided, the description carries full burden for behavioral disclosure. While 'create' implies a write operation, it doesn't mention required permissions, whether this is idempotent, what happens on duplicate emails, or what the response contains. For a user creation tool with zero annotation coverage, this leaves significant behavioral gaps.

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?

The description is a single, efficient sentence that gets straight to the point with no wasted words. It's appropriately sized for a basic tool description and front-loads the essential information.

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

Completeness2/5

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

For a user creation tool with no annotations, no output schema, and 0% schema description coverage, the description is inadequate. It doesn't explain what happens after creation, what validation occurs, or what errors might be returned. The agent would struggle to use this tool effectively without trial and error.

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

Parameters2/5

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

Schema description coverage is 0%, so the description must compensate but provides no parameter information. It doesn't explain what 'clientId' represents, what the 'users' array structure should contain, or the meaning of email/role fields. The description adds no value beyond what's already in the bare schema.

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?

The description clearly states the action ('create') and resource ('users'), specifying it can handle 'one or more users' which adds useful scope information. It doesn't explicitly distinguish from sibling tools like 'create-project' or 'create-tag', but the resource specificity is clear.

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

Usage Guidelines2/5

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

The description provides no guidance on when to use this tool versus alternatives like 'update-project' or 'delete-user'. It mentions 'in your instance' which gives some context but doesn't specify prerequisites, permissions needed, or typical use cases.

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

Install Server

Other Tools

Related Tools

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/fellipesaraiva88/n8n-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server