Skip to main content
Glama

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
NameRequiredDescriptionDefault
boardIdYesID of the Trello board to get lists from

Implementation Reference

  • 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, }; } } );
  • 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'), },
  • 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);

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/adriangrahldev/advanced-trello-mcp-server'

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