Skip to main content
Glama

get_lists

Retrieve all lists from a Trello board using the board ID to organize and manage tasks, cards, and workflows.

Instructions

Get all lists in a board

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
requestYes

Implementation Reference

  • The handler function for the 'get_lists' tool in the CallToolRequestSchema handler. It parses the arguments, calls trelloClient.getLists(board_id), and returns the JSON stringified lists.
    case 'get_lists': {
      const { board_id } = (request.params.arguments as { request: GetListsRequest }).request;
      const lists = await this.trelloClient.getLists(board_id);
      return {
        content: [{ type: 'text', text: JSON.stringify(lists, null, 2) }],
      };
    }
  • src/index.ts:65-84 (registration)
    Registration of the 'get_lists' tool in the ListToolsRequestSchema handler, including name, description, and inputSchema.
    {
      name: 'get_lists',
      description: 'Get all lists in a board',
      inputSchema: {
        type: 'object',
        properties: {
          request: {
            type: 'object',
            properties: {
              board_id: {
                type: 'string',
                description: 'ID of the board',
              },
            },
            required: ['board_id'],
          },
        },
        required: ['request'],
        title: 'get_listsArguments',
      },
  • TypeScript interface defining the input parameters for get_lists request.
    export interface GetListsRequest {
      board_id: string;
    }
  • The TrelloClient method that fetches lists for a board via Trello API, called by the tool handler.
    async getLists(boardId: string): Promise<List[]> {
      const response = await axios.get(
        `${this.baseUrl}/boards/${boardId}/lists?${this.getAuthParams()}`
      );
      return response.data;
    }

Tool Definition Quality

Score is being calculated. Check back soon.

Install Server

Other Tools

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/andypost/mcp-server-ts-trello'

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