Skip to main content
Glama

get_card_content

Retrieve all content blocks and descriptions for a specific card in Focalboard to view detailed information and manage task documentation.

Instructions

Get all content blocks (descriptions) for a card.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
cardIdYesThe ID of the card to get content for

Implementation Reference

  • src/index.ts:219-232 (registration)
    Registration of the 'get_card_content' MCP tool, including name, description, and input schema requiring 'cardId'.
    { name: 'get_card_content', description: 'Get all content blocks (descriptions) for a card.', inputSchema: { type: 'object', properties: { cardId: { type: 'string', description: 'The ID of the card to get content for' } }, required: ['cardId'] } }
  • MCP tool handler for 'get_card_content': validates cardId, calls focalboard.getCardContent(), formats result as JSON text response.
    case 'get_card_content': { const cardId = args?.cardId as string; if (!cardId) { throw new Error('cardId is required'); } const contentBlocks = await focalboard.getCardContent(cardId); return { content: [ { type: 'text', text: JSON.stringify(contentBlocks, null, 2) } ] }; }
  • Core implementation in FocalboardClient.getCardContent(): fetches card to get boardId, then retrieves child content blocks via API using parent_id filter.
    async getCardContent(cardId: string): Promise<Block[]> { const card = await this.getCard(cardId); // Fetch blocks with parent_id parameter const blocks = await this.makeRequest<Block[]>( `/boards/${card.boardId}/blocks`, 'GET', undefined, { parent_id: cardId } ); return blocks; }

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