Get n8n User
n8n_get_userRetrieve user details including ID, email, name, and role from the n8n automation platform using a unique identifier.
Instructions
Get details of a specific user.
Args:
id (string): User ID
Returns: User details with id, email, name, and role.
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": {
"id": "<id>"
},
"name": "n8n_get_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The unique identifier of the resource |
Implementation Reference
- src/tools/users-sourcecontrol.ts:90-118 (handler)Implementation of the n8n_get_user MCP tool handler which fetches user details from the n8n API.
// ============ Get User ============ server.registerTool( 'n8n_get_user', { title: 'Get n8n User', description: `Get details of a specific user. Args: - id (string): User ID Returns: User details with id, email, name, and role.`, inputSchema: IdParamSchema, annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true, openWorldHint: false } }, async (params: z.infer<typeof IdParamSchema>) => { const user = await get<N8nUser>(`/users/${params.id}`); return { content: [{ type: 'text', text: formatUser(user) }], structuredContent: user }; } );