# create_tag (/docs/mcp/tools/create-tag)

{/* Generated by scripts/sync-mcp-tools.mjs from happierleads-api. Do not edit: change src/routes/mcp/toolDocs.json there, or add content/mcp-notes/create_tag.mdx. */}

**Create a tag** · Changes data

Create a new tag on a website so you can label leads with tag_lead. The name is stored in upper case and must be unique on the website (a duplicate returns 'Tag text already exist'). websiteId comes from list_websites. Check list_tags first to reuse an existing tag. Returns status 'Successful' and tagId.

| Connection | Account URL, team member URL or OAuth |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website id (24 hex characters) from list_websites. |
| `name` | `string` | Yes | Tag name, e.g. "Hot account" (saved as "HOT ACCOUNT"). |
| `color` | `string` | No | Hex colour as #RRGGBB, e.g. "#059669". Default "#1E4EFF". Any other format is refused. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "create_tag",
  "title": "Create a tag",
  "annotations": {
    "title": "Create a tag",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website id (24 hex characters) from list_websites."
      },
      "name": {
        "type": "string",
        "description": "Tag name, e.g. \"Hot account\" (saved as \"HOT ACCOUNT\")."
      },
      "color": {
        "type": "string",
        "description": "Hex colour as #RRGGBB, e.g. \"#059669\". Default \"#1E4EFF\". Any other format is refused."
      }
    },
    "required": [
      "websiteId",
      "name"
    ]
  }
}
```
