> For the complete documentation index, see [llms.txt](https://docs.kick.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.kick.co/ai/mcp/mcp-use-case-library/cleanup-and-setup.md).

# Cleanup and Setup

MCP prompts for cleaning up and setting up books: tune the Chart of Accounts, merge counterparties, build rules, fix splits, and onboard clients.

Use these prompts to tidy a client's books or set up a new one. Each starts with a read-only look at what would change, then stops at a preview before anything is written.

### Walkthrough

<details>

<summary><strong>Copy Custom Chart of Accounts</strong></summary>

Copy a custom Chart of Accounts from one workspace or entity to another. The model can compare structures, explain what will be created, and stop for confirmation before applying setup changes.

{% embed url="<https://player.mux.com/duH01bY9X96HBopMGs3fVwV8ys00VNHqFI5p3ZgHpG7vE>" %}

</details>

### Cleanup prompts

<details>

<summary><strong>Audit and tune the Chart of Accounts</strong> <em>(read first, then writes)</em></summary>

Start with usage before making changes:

{% code overflow="wrap" %}

```
In the active workspace, run the Account Transactions report for each entity over the last ninety days and count the lines posted to each account. List every account in the Chart of Accounts with its count, flag accounts with no lines in that window, and note whether each looks safe to archive.
```

{% endcode %}

The counts come from the ledger, so they include journal entries as well as bank transactions.

For a structural change, request a preview before any write:

{% code overflow="wrap" %}

```
Prepare to create a new Long-Term Liability account named SBA Loan and reclassify the historical loan transactions for First National Bank into it. Show the count of affected transactions, the date range, and the proposed account hierarchy. Stop before writing.
```

{% endcode %}

</details>

<details>

<summary><strong>Clean up counterparties and classes</strong> <em>(read first, then writes)</em></summary>

Identify duplicates and underused entries before merging or retiring:

{% code overflow="wrap" %}

```
List counterparties in the active workspace that look like duplicates of Amazon. Show the variants, the transaction count for each, and the merge target you would pick. Do not merge yet.
```

{% endcode %}

{% code overflow="wrap" %}

```
Which classes have fewer than five transactions this year? List each with its transaction count and propose which ones to retire.
```

{% endcode %}

Once you have reviewed the proposal, authorize the merge:

{% code overflow="wrap" %}

```
Prepare to merge the counterparty variants you listed above into a single counterparty named Amazon. Show the final transaction count and stop before confirming.
```

{% endcode %}

</details>

<details>

<summary><strong>Build and tune rules</strong> <em>(read first, then writes)</em></summary>

Preview what a new rule would match before creating it:

{% code overflow="wrap" %}

```
I want a rule that categorizes Gusto payouts as Payroll and assigns class = Operations. Show me which existing transactions would have matched if this rule had been in place. Stop before creating the rule.
```

{% endcode %}

Audit existing rules for staleness:

{% code overflow="wrap" %}

```
List my existing rules with the date of the most recent transaction each one was applied to. Flag any with no applied transaction in the last six months and check whether the underlying patterns still appear in recent transactions.
```

{% endcode %}

Kick doesn't record when a rule last ran. The assistant reads the transactions each rule was applied to, newest first, and uses the latest transaction date.

</details>

<details>

<summary><strong>Rule proposal with backtest</strong> <em>(read first, then writes)</em></summary>

{% code overflow="wrap" %}

```
Look at how I've manually categorized Uber rides over the last 90 days. If a rule would have produced the same result, draft the rule and show me a backtest: which historical transactions it would have matched and where it would have disagreed with what I actually did. Stop before creating it.
```

{% endcode %}

</details>

<details>

<summary><strong>Normalize a messy vendor</strong> <em>(read first, then writes)</em></summary>

{% code overflow="wrap" %}

```
Search transactions containing "AMZN MKTP" in January 2026. Show distinct description variants and current categories. Propose a single counterparty + category mapping and count how many rows a bulk update would touch. Stop before updating.
```

{% endcode %}

</details>

<details>

<summary><strong>Review and fix split transactions</strong> <em>(read first, then writes)</em></summary>

{% code overflow="wrap" %}

```
List transactions in January 2026 split across multiple categories. Flag splits where line amounts don't sum to the parent or where a line lacks a class. Include transaction ids.
```

{% endcode %}

Then re-split a specific transaction, preview only:

{% code overflow="wrap" %}

```
Prepare to re-split transaction 4821 as $400 to Software and $100 to Office Supplies. Preview only.
```

{% endcode %}

</details>

### Onboarding prompts

<details>

<summary><strong>Stage a new client setup</strong> <em>(writes to Kick, multi-step)</em></summary>

Onboarding involves writes: entities, addresses, tax locations, a Chart of Accounts copy, and opening balances. Stage each step as a preview before confirming.

{% code overflow="wrap" %}

```
Prepare to set up a new entity called Beta Co in California, with the same entity type as Acme LLC. List the steps you will run: entity creation, address, tax locations, a Chart of Accounts template copied from Acme LLC's chart and applied to Beta Co, and opening-balance staging from the attached trial balance. Then stop before executing. I will confirm each step before you run it.
```

{% endcode %}

Kick creates the new entity's Cash ledger itself, and can create its Accrual ledger along with the entity, so there's no separate ledger step. Copying another client's chart goes through a Chart of Accounts template, which needs a connection with access to your organization and stays in your firm's templates afterward. To copy from an entity in the same workspace, the assistant can copy its chart while it creates the entity instead.

For comparing existing client structures (read-only):

{% code overflow="wrap" %}

```
Compare the Charts of Accounts across the workspaces I can access. List accounts that exist in only one workspace and accounts that exist in all of them. Do not modify anything.
```

{% endcode %}

</details>

<details>

<summary><strong>Catch-up onboarding plan</strong> <em>(read first, then writes)</em></summary>

{% code overflow="wrap" %}

```
New client Beta Co just connected accounts with 9 months of history. Draft a staged catch-up plan artifact: phase the work by month, estimate volume per phase from transaction statistics, and list the CoA copy source to use. Don't execute. For each phase, create a task (preview first) so I can assign it.
```

{% endcode %}

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.kick.co/ai/mcp/mcp-use-case-library/cleanup-and-setup.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
