get-boards
Retrieve and list all Trello boards from your connected workspace to view available projects and organize tasks.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get-boards"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Implementation Reference
- src/index.ts:126-151 (handler)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 () => {