Skip to main content
Glama

delete_card

Remove a task permanently from a Focalboard workspace by specifying the card and board IDs.

Instructions

Delete a card (task) from a board permanently.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesThe ID of the card to delete
boardIdYesThe ID of the board the card belongs to

Implementation Reference

  • Core implementation of deleteCard method that sends DELETE request to the Focalboard API to remove the specified card block.
    async deleteCard(boardId: string, cardId: string): Promise<void> {
      await this.makeRequest<void>(
        `/boards/${boardId}/blocks/${cardId}`,
        'DELETE'
      );
    }
  • MCP tool execution handler for 'delete_card' that validates inputs and delegates to FocalboardClient.deleteCard.
    case 'delete_card': {
      const cardId = args?.cardId as string;
      const boardId = args?.boardId as string;
    
      if (!cardId || !boardId) {
        throw new Error('cardId and boardId are required');
      }
    
      await focalboard.deleteCard(boardId, cardId);
      return {
        content: [
          {
            type: 'text',
            text: JSON.stringify({ success: true, message: 'Card deleted successfully' })
          }
        ]
      };
  • src/index.ts:180-195 (registration)
    Registration of the 'delete_card' tool including its name, description, and input schema.
    name: 'delete_card',
    description: 'Delete a card (task) from a board permanently.',
    inputSchema: {
      type: 'object',
      properties: {
        cardId: {
          type: 'string',
          description: 'The ID of the card to delete'
        },
        boardId: {
          type: 'string',
          description: 'The ID of the board the card belongs to'
        }
      },
      required: ['cardId', 'boardId']
    }

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/gmjuhasz/focalboard-mcp-server'

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