Skip to main content
Glama

trello_get_card_checklists

Retrieve all checklists and their items for a specific Trello card to track tasks and progress.

Instructions

Get all checklists and their items for a specific Trello card.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
apiKeyYesTrello API key (automatically provided by Claude.app from your stored credentials)
tokenYesTrello API token (automatically provided by Claude.app from your stored credentials)
cardIdYesID of the card to get checklists for
checkItemsNoInclude checklist items in responseall
fieldsNoOptional: specific fields to include (e.g., ["name", "pos"])

Implementation Reference

  • The handler function that executes the Trello get checklists logic.
    export async function handleTrelloGetCardChecklists(args: unknown) {
      try {
        const { apiKey, token, cardId, checkItems, fields } = validateGetCardChecklists(args);
        const client = new TrelloClient({ apiKey, token });
        
        const response = await client.getCardChecklists(cardId, {
          ...(checkItems && { checkItems }),
          ...(fields && { fields })
        });
        const checklists = response.data;
        
        const result = {
          summary: `Found ${checklists.length} checklist(s) for card`,
          cardId,
          checklists: checklists.map(checklist => ({
            id: checklist.id,
            name: checklist.name,
            position: checklist.pos,
            checkItems: checklist.checkItems?.map((item: any) => ({
              id: item.id,
              name: item.name,
              state: item.state,
              position: item.pos,
              due: item.due,
              nameData: item.nameData
            })) || []
          })),
          rateLimit: response.rateLimit
        };
        
        return {
          content: [
            {
              type: 'text' as const,
              text: JSON.stringify(result, null, 2)
            }
          ]
        };
      } catch (error) {
        const errorMessage = error instanceof z.ZodError 
          ? formatValidationError(error)
          : error instanceof Error 
            ? error.message 
  • Tool definition including input schema for 'trello_get_card_checklists'.
    export const trelloGetCardChecklistsTool: Tool = {
      name: 'trello_get_card_checklists',
      description: 'Get all checklists and their items for a specific Trello card.',
      inputSchema: {
        type: 'object',
        properties: {
          apiKey: {
            type: 'string',
            description: 'Trello API key (automatically provided by Claude.app from your stored credentials)'
          },
          token: {
            type: 'string',
            description: 'Trello API token (automatically provided by Claude.app from your stored credentials)'
          },
          cardId: {
            type: 'string',
            description: 'ID of the card to get checklists for',
            pattern: '^[a-f0-9]{24}$'
          },
          checkItems: {
            type: 'string',
            enum: ['all', 'none'],
            description: 'Include checklist items in response',
            default: 'all'
          },
          fields: {
            type: 'array',
            items: { type: 'string' },
            description: 'Optional: specific fields to include (e.g., ["name", "pos"])'
          }
        },
        required: ['apiKey', 'token', 'cardId']
      }
    };

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/kocakli/Trello-Desktop-MCP'

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