Skip to main content
Glama

basecamp_create_message

Create and post messages to Basecamp message boards to communicate updates, share information, and collaborate with team members on projects.

Instructions

Create a new message in a Basecamp message board.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
bucket_idYesBasecamp resource identifier
contentNoMessage content (HTML supported)
message_board_idYes
statusNoMessage statusactive
subjectYesMessage subject/title

Implementation Reference

  • The handler function for basecamp_create_message tool. Initializes the Basecamp client and calls client.messages.create with the provided parameters, returning success message with ID, subject, and URL or error.
    async (params) => { try { const client = await initializeBasecampClient(); const response = await client.messages.create({ params: { bucketId: params.bucket_id, messageBoardId: params.message_board_id, }, body: { subject: params.subject, content: params.content, category_id: params.message_type_id, status: params.status, }, }); if (response.status !== 201 || !response.body) { throw new Error(`Failed to create message`); } return { content: [ { type: "text", text: `Message created successfully!\n\nID: ${response.body.id}\nSubject: ${response.body.title}\nURL: ${response.body.app_url}`, }, ], }; } catch (error) { return { content: [{ type: "text", text: handleBasecampError(error) }], }; } },
  • Zod input schema for the basecamp_create_message tool defining required bucket_id, message_board_id, subject, and optional content, message_type_id, status.
    inputSchema: { bucket_id: BasecampIdSchema, message_board_id: BasecampIdSchema, subject: z.string().min(1).max(500).describe("Message subject/title"), content: z .string() .optional() .describe( `HTML message content. To mention people: <bc-attachment sgid="{ person.attachable_sgid }"></bc-attachment>`, ), message_type_id: BasecampIdSchema.optional().describe( "Optional message type/category ID", ), status: z .enum(["active", "draft"]) .default("active") .describe("Message status"), },
  • Complete registration of the basecamp_create_message tool within registerMessageTools function, including schema, metadata, and handler.
    // basecamp_create_message server.registerTool( "basecamp_create_message", { title: "Create Basecamp Message", description: `Create a new message in a Basecamp message board.`, inputSchema: { bucket_id: BasecampIdSchema, message_board_id: BasecampIdSchema, subject: z.string().min(1).max(500).describe("Message subject/title"), content: z .string() .optional() .describe( `HTML message content. To mention people: <bc-attachment sgid="{ person.attachable_sgid }"></bc-attachment>`, ), message_type_id: BasecampIdSchema.optional().describe( "Optional message type/category ID", ), status: z .enum(["active", "draft"]) .default("active") .describe("Message status"), }, annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false, openWorldHint: true, }, }, async (params) => { try { const client = await initializeBasecampClient(); const response = await client.messages.create({ params: { bucketId: params.bucket_id, messageBoardId: params.message_board_id, }, body: { subject: params.subject, content: params.content, category_id: params.message_type_id, status: params.status, }, }); if (response.status !== 201 || !response.body) { throw new Error(`Failed to create message`); } return { content: [ { type: "text", text: `Message created successfully!\n\nID: ${response.body.id}\nSubject: ${response.body.title}\nURL: ${response.body.app_url}`, }, ], }; } catch (error) { return { content: [{ type: "text", text: handleBasecampError(error) }], }; } }, );
  • src/index.ts:62-62 (registration)
    Top-level call to registerMessageTools(server) in main server setup, which registers the basecamp_create_message among other message tools.
    registerMessageTools(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/stefanoverna/basecamp-mcp'

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