get-lists
Retrieve all lists from a specified Trello board to organize and manage project workflows within the Advanced Trello MCP Server.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boardId | Yes | ID of the Trello board to get lists from |
Implementation Reference
- src/tools/lists.ts:16-42 (handler)The handler function that fetches lists from the Trello API for the given boardId and returns the data as text content or an error.async ({ boardId }) => { try { const response = await fetch( `https://api.trello.com/1/boards/${boardId}/lists?key=${credentials.apiKey}&token=${credentials.apiToken}` ); const data = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(data), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error getting lists: ${error}`, }, ], isError: true, }; } } );
- src/tools/lists.ts:13-15 (schema)Zod schema defining the input parameter 'boardId' for the get-lists tool.{ boardId: z.string().describe('ID of the Trello board to get lists from'), },
- src/tools/lists.ts:11-42 (registration)Direct registration of the 'get-lists' tool using server.tool, including name, schema, and inline handler.server.tool( 'get-lists', { boardId: z.string().describe('ID of the Trello board to get lists from'), }, async ({ boardId }) => { try { const response = await fetch( `https://api.trello.com/1/boards/${boardId}/lists?key=${credentials.apiKey}&token=${credentials.apiToken}` ); const data = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(data), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error getting lists: ${error}`, }, ], isError: true, }; } } );
- src/index.ts:89-89 (registration)Invocation of registerListsTools which registers the 'get-lists' tool among others.registerListsTools(server, credentials);