Skip to main content
Glama

Plane MCP Server

Official
by makeplane

create_module

Add a new module to a project in Plane MCP Server by specifying project ID and module details, managing issues and workflows effectively.

Instructions

Create a new module in a project

Input Schema

NameRequiredDescriptionDefault
module_dataYes
project_idYesThe uuid identifier of the project to create the module in

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "module_data": { "additionalProperties": false, "properties": { "archived_at": { "format": "date-time", "type": "string" }, "backlog_issues": { "type": "integer" }, "cancelled_issues": { "type": "integer" }, "completed_issues": { "type": "integer" }, "created_at": { "format": "date-time", "type": "string" }, "created_by": { "format": "uuid", "type": "string" }, "deleted_at": { "format": "date-time", "type": "string" }, "description": { "type": "string" }, "description_html": {}, "description_text": {}, "external_id": { "maxLength": 255, "type": "string" }, "external_source": { "maxLength": 255, "type": "string" }, "id": { "format": "uuid", "type": "string" }, "lead": { "format": "uuid", "type": "string" }, "logo_props": {}, "members": { "items": { "format": "uuid", "type": "string" }, "type": "array" }, "name": { "maxLength": 255, "type": "string" }, "project": { "format": "uuid", "type": "string" }, "sort_order": { "type": "number" }, "start_date": { "format": "date", "type": "string" }, "started_issues": { "type": "integer" }, "status": {}, "target_date": { "format": "date", "type": "string" }, "total_issues": { "type": "integer" }, "unstarted_issues": { "type": "integer" }, "updated_at": { "format": "date-time", "type": "string" }, "updated_by": { "format": "uuid", "type": "string" }, "view_props": {}, "workspace": { "format": "uuid", "type": "string" } }, "required": [ "name" ], "type": "object" }, "project_id": { "description": "The uuid identifier of the project to create the module in", "type": "string" } }, "required": [ "project_id", "module_data" ], "type": "object" }

Implementation Reference

  • MCP server.tool call registering the 'create_module' tool, including its description, input schema using ModuleSchema, and inline handler function.
    server.tool( "create_module", "Create a new module in a project", { project_id: z.string().describe("The uuid identifier of the project to create the module in"), module_data: ModuleSchema.partial().required({ name: true, }), }, async ({ project_id, module_data }) => { const response = await makePlaneRequest( "POST", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/`, module_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
  • The handler function that executes the tool logic: POST request to create module in Plane API and returns JSON response.
    async ({ project_id, module_data }) => { const response = await makePlaneRequest( "POST", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/`, module_data ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Zod schema for Module (imported as ModuleSchema), used to validate the module_data input parameter with partial() and name required.
    export const Module = z.object({ archived_at: z.string().datetime({ offset: true }).optional(), backlog_issues: z.number().int().readonly(), cancelled_issues: z.number().int().readonly(), completed_issues: z.number().int().readonly(), created_at: z.string().datetime({ offset: true }).readonly(), created_by: z.string().uuid().readonly(), deleted_at: z.string().datetime({ offset: true }).readonly(), description: z.string().optional(), description_html: z.any().optional(), description_text: z.any().optional(), external_id: z.string().max(255).optional(), external_source: z.string().max(255).optional(), id: z.string().uuid().readonly(), lead: z.string().uuid().optional(), logo_props: z.any().optional(), members: z.array(z.string().uuid()).optional(), name: z.string().max(255), project: z.string().uuid().readonly(), sort_order: z.number().optional(), start_date: z.string().date().optional(), started_issues: z.number().int().readonly(), status: z.any().optional(), target_date: z.string().date().optional(), total_issues: z.number().int().readonly(), unstarted_issues: z.number().int().readonly(), updated_at: z.string().datetime({ offset: true }).readonly(), updated_by: z.string().uuid().readonly(), view_props: z.any().optional(), workspace: z.string().uuid().readonly(), }); export type Module = z.infer<typeof Module>;
  • Invocation of registerModuleTools which includes the create_module tool registration.
    registerModuleTools(server);

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/makeplane/plane-mcp-server'

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