Skip to main content
Glama

trash_document

Move a document to the trash in Basecamp by specifying the project ID and document ID. This tool helps declutter workspaces and manage content efficiently within the Basecamp MCP Server.

Instructions

Move a document to trash

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
document_idYesDocument ID
project_idYesProject ID

Implementation Reference

  • The trashDocument method in BasecampClient class that implements the core logic of trashing a document by sending a DELETE request to the Basecamp API.
    async trashDocument(projectId: string, documentId: string): Promise<void> { await this.client.delete(`/buckets/${projectId}/documents/${documentId}.json`); }
  • src/index.ts:447-458 (registration)
    Registers the 'trash_document' tool in the MCP server's list of tools, providing the name, description, and input schema.
    { name: 'trash_document', description: 'Move a document to trash', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, document_id: { type: 'string', description: 'Document ID' }, }, required: ['project_id', 'document_id'], }, },
  • Defines the input schema for the 'trash_document' tool, specifying required project_id and document_id parameters.
    { name: 'trash_document', description: 'Move a document to trash', inputSchema: { type: 'object', properties: { project_id: { type: 'string', description: 'Project ID' }, document_id: { type: 'string', description: 'Document ID' }, }, 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