card_label_create_and_add
Creates a new Trello board label and applies it to a card in one step. Use the existing-label action for labels that already exist to avoid duplicates.
Instructions
Create a new board label and apply it to this card. Use card_label_add for an existing label; repeating this creation can create duplicates.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cardId": "<cardId>",
"name": "<name>",
"color": "<color>"
},
"name": "card_label_create_and_add"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Human-readable label name. | |
| color | Yes | Trello label color for the new board label to create and apply. | |
| cardId | Yes | Trello card id, short link, or Trello card URL. |