# update_filter (/docs/mcp/tools/update-filter)

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

**Favourite a saved filter** · Changes data

Marks a saved leads filter as a favourite (shown first) or not. Returns 404 when the filter is not one of this website's.

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

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `filterId` | `string` | Yes | _id from list_filters. |
| `isFavorite` | `boolean` | Yes | true to favourite it, false to un-favourite. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "update_filter",
  "title": "Favourite a saved filter",
  "annotations": {
    "title": "Favourite a saved filter",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": false
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "filterId": {
        "type": "string",
        "description": "_id from list_filters."
      },
      "isFavorite": {
        "type": "boolean",
        "description": "true to favourite it, false to un-favourite."
      }
    },
    "required": [
      "websiteId",
      "filterId",
      "isFavorite"
    ]
  }
}
```
