Skip to main content
Glama

get-lists

Retrieve all lists from a specific Trello board to organize and manage tasks efficiently. Simplify project tracking by accessing board data directly through the Advanced Trello MCP Server.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
boardIdYesID of the Trello board to get lists from

Implementation Reference

  • Handler function that fetches lists from the specified Trello board via API and returns JSON data or 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, }; } }
  • Input schema using Zod: requires boardId as string with description.
    { boardId: z.string().describe('ID of the Trello board to get lists from'), },
  • Registration of the 'get-lists' tool with server.tool, including name, schema, and handler.
    '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)
    Top-level call to registerListsTools function, which includes the 'get-lists' tool registration.
    registerListsTools(server, credentials);
  • src/index.ts:7-7 (registration)
    Import of the registerListsTools function used to register the lists tools including 'get-lists'.
    import { registerListsTools } from './tools/lists.js';

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