Skip to main content
Glama

delete-action

Remove specific actions from Trello boards to maintain organized workflows and clean activity logs.

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
actionIdYesID of the action to delete

Implementation Reference

  • The handler function that executes the delete-action tool. It checks for Trello credentials, makes a DELETE request to the Trello API endpoint for the given actionId, and returns the response or an error message.
    async ({ actionId }) => { try { if (!credentials.apiKey || !credentials.apiToken) { return { content: [ { type: 'text', text: 'Trello API credentials are not configured', }, ], isError: true, }; } const response = await fetch( `https://api.trello.com/1/actions/${actionId}?key=${credentials.apiKey}&token=${credentials.apiToken}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, } ); const data = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(data), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error deleting action: ${error}`, }, ], isError: true, }; } }
  • Zod schema defining the input parameter 'actionId' for the delete-action tool.
    { actionId: z.string().describe('ID of the action to delete'), },
  • Registration of the 'delete-action' tool using server.tool(), including input schema and inline handler function within the registerActionsTools function.
    server.tool( 'delete-action', { actionId: z.string().describe('ID of the action to delete'), }, async ({ actionId }) => { try { if (!credentials.apiKey || !credentials.apiToken) { return { content: [ { type: 'text', text: 'Trello API credentials are not configured', }, ], isError: true, }; } const response = await fetch( `https://api.trello.com/1/actions/${actionId}?key=${credentials.apiKey}&token=${credentials.apiToken}`, { method: 'DELETE', headers: { 'Content-Type': 'application/json', }, } ); const data = await response.json(); return { content: [ { type: 'text', text: JSON.stringify(data), }, ], }; } catch (error) { return { content: [ { type: 'text', text: `Error deleting action: ${error}`, }, ], isError: true, }; } } );

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