# set_auto_topup (/docs/mcp/tools/set-auto-topup)

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

**Set auto top-up** · Changes data · Acts outside your account

Turns auto top-up on or off and sets the pack of leads bought each time credits run out and the monthly cap in USD. When on, the card on file is charged automatically up to the cap. Account owners and billing admins only.

| Connection | Account-owner URL or OAuth (not a team member URL) |
| --- | --- |

## Parameters [#parameters]

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `websiteId` | `string` | Yes | Website ID from list_websites. |
| `enabled` | `boolean` | Yes | true to buy leads automatically, false to stop. |
| `packLeads` | `number` | No | Leads bought each time. |
| `capUsd` | `number` | No | Most that may be spent per month, in USD. |

## Tool definition [#tool-definition]

What your assistant receives from `tools/list`:

```json
{
  "name": "set_auto_topup",
  "title": "Set auto top-up",
  "annotations": {
    "title": "Set auto top-up",
    "readOnlyHint": false,
    "destructiveHint": false,
    "idempotentHint": true,
    "openWorldHint": true
  },
  "inputSchema": {
    "type": "object",
    "properties": {
      "websiteId": {
        "type": "string",
        "description": "Website ID from list_websites."
      },
      "enabled": {
        "type": "boolean",
        "description": "true to buy leads automatically, false to stop."
      },
      "packLeads": {
        "type": "number",
        "minimum": 1,
        "description": "Leads bought each time."
      },
      "capUsd": {
        "type": "number",
        "minimum": 0,
        "description": "Most that may be spent per month, in USD."
      }
    },
    "required": [
      "websiteId",
      "enabled"
    ]
  }
}
```
