# rename_list (/docs/mcp/tools/rename-list)

{/* 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/rename_list.mdx. */}

**Rename a list** · Changes data

Renames a contact or company list of this website. Its contacts or companies do not change. listId comes from list_lists.

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

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `listType` | `"contact" \| "company"` | Yes | contact or company. |
| `listId` | `string` | Yes | List ID from list_lists. |
| `name` | `string` | Yes | The new name. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "rename_list",
  "title": "Rename a list",
  "annotations": {
    "title": "Rename a list",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "listType": {
        "type": "string",
        "enum": [
          "contact",
          "company"
        ],
        "description": "contact or company."
      },
      "listId": {
        "type": "string",
        "description": "List ID from list_lists."
      },
      "name": {
        "type": "string",
        "description": "The new name."
      }
    },
    "required": [
      "websiteId",
      "listType",
      "listId",
      "name"
    ]
  }
}
```
