Skip to main content
Glama

update-project

Modify a project's name using a single-line JSON input. Requires an n8n Enterprise license with project management features enabled.

Instructions

Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
clientIdYes
nameYes
projectIdYes

Implementation Reference

  • Handler function that executes the 'update-project' tool logic. It retrieves the N8nClient instance, calls updateProject method on it, and returns success or error response.
    case "update-project": { const { clientId, projectId, name } = args as { clientId: string; projectId: string; name: string }; const client = clients.get(clientId); if (!client) { return { content: [{ type: "text", text: "Client not initialized. Please run init-n8n first.", }], isError: true }; } try { await client.updateProject(projectId, name); return { content: [{ type: "text", text: `Successfully updated project ${projectId} with new name: ${name}`, }] }; } catch (error) { return { content: [{ type: "text", text: error instanceof Error ? error.message : "Unknown error occurred", }], isError: true }; } }
  • src/index.ts:542-554 (registration)
    Registration of the 'update-project' tool in the list of tools returned by list-tools handler, including its name, description, and input schema.
    { name: "update-project", description: "Update a project's name. NOTE: Requires n8n Enterprise license with project management features enabled. IMPORTANT: Arguments must be provided as compact, single-line JSON without whitespace or newlines.", inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
  • Input schema definition for the 'update-project' tool specifying parameters: clientId, projectId, name.
    inputSchema: { type: "object", properties: { clientId: { type: "string" }, projectId: { type: "string" }, name: { type: "string" } }, required: ["clientId", "projectId", "name"] } },
  • N8nClient method that performs the actual API call to update a project name via PUT /projects/{projectId}.
    async updateProject(projectId: string, name: string): Promise<void> { return this.makeRequest<void>(`/projects/${projectId}`, { method: 'PUT', body: JSON.stringify({ name }), }); }

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