Skip to main content
Glama

get_lists

Retrieve workflow columns from a Trello board to view and manage task organization stages like "To Do" and "Done".

Instructions

Get all lists in a specific Trello board. Use this to see the workflow columns (like "To Do", "In Progress", "Done") in a board.

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)
boardIdYesThe ID of the board to get lists from (you can get this from list_boards)
filterNoFilter lists by status: "open" for active lists, "closed" for archived lists, "all" for bothopen

Implementation Reference

  • The handleGetLists function executes the logic to retrieve Trello lists for a given board.
    export async function handleGetLists(args: unknown) {
      try {
        const { apiKey, token, boardId, filter } = validateGetBoardLists(args);
        const client = new TrelloClient({ apiKey, token });
        
        const response = await client.getBoardLists(boardId, filter);
        const lists = response.data;
        
        const result = {
          summary: `Found ${lists.length} ${filter} list(s) in board`,
          boardId,
          lists: lists.map(list => ({
            id: list.id,
            name: list.name,
            position: list.pos,
            closed: list.closed,
            subscribed: list.subscribed
          })),
          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 
            : 'Unknown error occurred';
            
        return {
          content: [
            {
              type: 'text' as const,
              text: `Error getting lists: ${errorMessage}`
            }
          ],
          isError: true
        };
      }
    }
  • The getListsTool constant defines the MCP tool registration, name, and input schema for 'get_lists'.
    export const getListsTool: Tool = {
      name: 'get_lists',
      description: 'Get all lists in a specific Trello board. Use this to see the workflow columns (like "To Do", "In Progress", "Done") in a board.',
      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)'
          },
          boardId: {
            type: 'string',
            description: 'The ID of the board to get lists from (you can get this from list_boards)',
            pattern: '^[a-f0-9]{24}$'
          },
          filter: {
            type: 'string',
            enum: ['all', 'open', 'closed'],
            description: 'Filter lists by status: "open" for active lists, "closed" for archived lists, "all" for both',
            default: 'open'
          }
        },
        required: ['apiKey', 'token', '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/kocakli/Trello-Desktop-MCP'

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