Skip to main content
Glama
jhliberty

Basecamp MCP Server

by jhliberty

update_document

Modify Basecamp 3 documents by updating titles and HTML content using project and document IDs for precise file management within the Basecamp MCP Server.

Instructions

Update a document

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
contentNoNew HTML content
document_idYesDocument ID
project_idYesProject ID
titleNoNew title

Implementation Reference

  • The core handler function that executes the tool logic by making a PUT request to update the document title and/or content in Basecamp.
    async updateDocument(
      projectId: string,
      documentId: string,
      title?: string,
      content?: string
    ): Promise<Document> {
      const data: any = {};
      if (title) data.title = title;
      if (content) data.content = content;
    
      const response = await this.client.put(`/buckets/${projectId}/documents/${documentId}.json`, data);
      return response.data;
    }
  • The input schema and description for the 'update_document' tool, registered in the MCP server's tools list.
    {
      name: 'update_document',
      description: 'Update a document',
      inputSchema: {
        type: 'object',
        properties: {
          project_id: { type: 'string', description: 'Project ID' },
          document_id: { type: 'string', description: 'Document ID' },
          title: { type: 'string', description: 'New title' },
          content: { type: 'string', description: 'New HTML content' },
        },
        required: ['project_id', 'document_id'],
      },
    },

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/jhliberty/basecamp-mcp-server'

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