Skip to main content
Glama

get-boards

Retrieve and list all Trello boards from your connected workspace to view available projects and organize tasks.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault

No arguments

Implementation Reference

  • The handler function for the 'get-boards' tool. It fetches the user's Trello boards via the API and returns the JSON data or an error message.
    server.tool('get-boards', {}, async () => {
    	try {
    		const response = await fetch(
    			`https://api.trello.com/1/members/me/boards?key=${trelloApiKey}&token=${trelloApiToken}`
    		);
    		const data = await response.json();
    		return {
    			content: [
    				{
    					type: 'text',
    					text: JSON.stringify(data),
    				},
    			],
    		};
    	} catch (error) {
    		return {
    			content: [
    				{
    					type: 'text',
    					text: `Error getting boards: ${error}`,
    				},
    			],
    			isError: true,
    		};
    	}
    });
  • src/index.ts:126-126 (registration)
    Registration of the 'get-boards' tool with empty input schema using server.tool.
    server.tool('get-boards', {}, async () => {

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/praveencs87/trello-mcp'

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