Skip to main content
Glama

Plane MCP Server

Official
by makeplane

get_module

Retrieve detailed information about a specific module within a project using its unique identifiers for project and module management within the Plane MCP Server.

Instructions

Get details of a specific module

Input Schema

NameRequiredDescriptionDefault
module_idYesThe uuid identifier of the module to get
project_idYesThe uuid identifier of the project containing the module

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "module_id": { "description": "The uuid identifier of the module to get", "type": "string" }, "project_id": { "description": "The uuid identifier of the project containing the module", "type": "string" } }, "required": [ "project_id", "module_id" ], "type": "object" }

Implementation Reference

  • Handler function for the get_module tool. It makes a GET request to the Plane API to retrieve details of a specific module and returns the response as formatted JSON text.
    async ({ project_id, module_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; }
  • Input schema for the get_module tool, defining required string parameters project_id and module_id using Zod.
    { project_id: z.string().describe("The uuid identifier of the project containing the module"), module_id: z.string().describe("The uuid identifier of the module to get"), },
  • Registration of the get_module tool using McpServer.tool(), including name, description, input schema, and inline handler function.
    server.tool( "get_module", "Get details of a specific module", { project_id: z.string().describe("The uuid identifier of the project containing the module"), module_id: z.string().describe("The uuid identifier of the module to get"), }, async ({ project_id, module_id }) => { const response = await makePlaneRequest( "GET", `workspaces/${process.env.PLANE_WORKSPACE_SLUG}/projects/${project_id}/modules/${module_id}/` ); return { content: [ { type: "text", text: JSON.stringify(response, null, 2), }, ], }; } );
  • Helper utility function makePlaneRequest used by the get_module handler to perform authenticated HTTP requests to the Plane API via axios.
    export async function makePlaneRequest<T>(method: string, path: string, body: any = null): Promise<T> { const hostUrl = process.env.PLANE_API_HOST_URL || "https://api.plane.so/"; const host = hostUrl.endsWith("/") ? hostUrl : `${hostUrl}/`; const url = `${host}api/v1/${path}`; const headers: Record<string, string> = { "X-API-Key": process.env.PLANE_API_KEY || "", }; // Only add Content-Type for non-GET requests if (method.toUpperCase() !== "GET") { headers["Content-Type"] = "application/json"; } try { const config: AxiosRequestConfig = { url, method, headers, }; // Only include body for non-GET requests if (method.toUpperCase() !== "GET" && body !== null) { config.data = body; } const response = await axios(config); return response.data; } catch (error) { if (axios.isAxiosError(error)) { throw new Error(`Request failed: ${error.message}`); } throw error; } }

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