Back

Balancing the Books with Claude: Building a Business Central Trial Balance Through PopdockAI

Published: Dec 03, 2026
Post Author Written by Joseph Barb

If you’ve ever needed a trial balance from Business Central laid out exactly the way your accounting team likes it, you know the built-in report doesn’t always fit. With PopdockAI, you can expose your Business Central data to Claude as tools, then ask for a trial balance in plain English. Claude pulls the numbers, does the math, checks that debits equal credits, and hands you a formatted Word report.

This article will walk you through how to set this up against the CRONUS USA, Inc. demo company. In the following steps, you will see how to build the PopdockAI tools Claude needs, how to write tool descriptions that keep Claude on track, how to connect it all to Claude, and how to turn the whole thing into a repeatable report with a Claude skill.

If you’d rather build a Trial Balance directly in Popdock without AI, see How to Create a Trial Balance Report for Business Central in Popdock.

What You Need Before You Start

There are only a few pieces to have in place before you begin:

  • A Popdock account with a working Business Central Sandbox connector (to create a Query Builder list that pulls in data from the G/L Entry table).
  • A working Business Central Production connector (the one you want the trial balance from).
  • Access to PopdockAI so you can publish Popdock lists as tools.
  • A Claude account that can add custom connectors and skills.

One thing worth knowing up front: Claude never queries Business Central directly. Every number it uses comes from a Popdock list you control, so the same security and company access you already have in Popdock applies here too.

Building the Trial Balance Tools in PopdockAI

A trial balance needs three things for every account: where it started, what happened during the period, and where it ended. Rather than handing Claude every G/L entry and hoping for the best, you build three focused tools, each backed by a Popdock list on the Business Central Production connector. The two summary lists consolidate the data, so Claude uses fewer tokens to build the trial balance.

Step 1: Create the Query Builder List to Publish

1. First, build a Query Builder list on the Sandbox connector.

2. Edit the Business Central Sandbox connector.

3. Click on Lists in the left navigation menu.

4. Click on the Query Builder tab.

5. Click to add a new Query Builder list and give it a name. In this example, it is named G/L Entries.

6. Choose the group you want your list to be in, then click the Add button.

7. Next click on Query builder in the left navigation menu.

8. Then click the Add table button.

9. Choose the G/L Entry table from the dropdown, then click the Add button.

10. Next, click Fields and add the fields you want. The only fields needed for this list are G/L Account No., Amount ($), Debit Amount ($), Credit Amount ($) and Posting Date.

QB GL Entry

11. That’s all this list needs. You don’t need to add user variables or restrictions to the Query Builder list, because the summary lists you build in Steps 3 and 4 filter the entries by date themselves. Continue to Step 2 to publish the list.

Step 2: Publish Your Query Builder List

Now that your Query Builder list is built, you need to publish it to your Business Central Sandbox so that it can be compiled and then promoted to your Business Central Production connector. For instructions, see:


Step 3: Build Beginning Balance Summary List

1. Edit your Production connector and then click Lists in the left navigation.

2. Click the Custom lists tab.

3. Click the Add custom list button and choose Summarize a list.

4. Give your list a name like G/L Balance Before Date by Account No. Then select the base list of G/L Entries (or the name you gave the Query Builder list that you published from Steps 1 and 2) and then choose a Group to add the list to.

Screenshot 2026 11 25 101525

5. On the left navigation, click Fields.

6. Choose the Summary method of Sum. For this summary you only need the Amount ($) field.

7. Choose the Group by field which is G/L Account No. You won’t need to add the base list as a detail so leave this box unchecked.

Screenshot 2026 11 25 101657

8. Click Add list when you are done.

9. Next you want to configure a user variable and restriction for the list so that the list can be restricted by the before date.

10. Click Variables in the left navigation menu.

11. Click the Add variable button.

12. Name the variable before-date and set the Field type to Date. You can leave the default value as the current date. Leave the Required box unchecked. Then click Add.

Screenshot 2026 11 25 101821

13. Next click Restrictions in the left navigation menu.

14. Here in the Base restrictions section, click Add a restriction.

15. Set the restriction to Posting Date, and set the Restriction type to Less than. Then click the icon in the Value field to set it to Select a variable, and then set it to before-date.

Screenshot 2026 11 25 101912


Step 4: Build the Period Activity Summary List

1. Edit your Production connector and then click Lists in the left navigation.

2. Click the Custom lists tab.

3. Click the Add custom list button and choose Summarize a list.

4. Give your list a name like G/L Entries Summary by Account No. Then select the base list of G/L Entries (or the name you gave the Query Builder list that you published from Steps 1 and 2) and then choose a Group to add the list to.

Screenshot 2026 11 25 102027

5. On the left navigation, click Fields.

6. Choose the Summary method of Sum. For this summary you only need the Amount ($), Credit Amount ($), and Debit Amount ($) fields.

7. Choose the Group by field which is G/L Account No.

Screenshot 2026 11 25 102122

8. Click Add list when you are done.

9. Next you want to configure two user variables and restrictions for the list so that the list can be restricted by the start and end date.

10. Click Variables in the left navigation menu.

11. Then click the Add variable button.

12. Name the variable start-date and set the Field type to Date. You can leave the default value as the current date. Leave the Required box unchecked. Then click Add.

13. Add another variable the same as Step 12, but name it end-date.

Screenshot 2026 11 25 102227

14. Next click Restrictions in the left navigation menu.

15. Here in the Base restrictions section, click Add a restriction.

16. Set the restriction to Posting Date, Restriction type of Greater than or equal to, then click the icon in the Value field to set it to Select a variable, then set it to start-date.

17. Click Add another restriction and set the restriction to Posting Date, set the Restriction type to Less than or equal to, then click the icon in the Value field and set it to Select a variable, then set it to end-date.

Screenshot 2026 11 25 102302


Step 5: Add Shared Instructions

Tool descriptions tell Claude how to use one tool. Shared Instructions tell Claude how to use all of your tools together. PopdockAI sends them to Claude when it connects to your MCP server, so these rules apply to every tool without you repeating them in each description.

1. From the main menu, click MCP.

2. Then click Shared Instructions in the left navigation.

3. Click the Add shared instructions button.

4. Enter the following in the Name, Description, and Content fields, and then click Add.

A good rule of thumb: if a rule involves more than one tool, it belongs in the Shared Instructions. If it only applies to one tool or one parameter, keep it in that tool’s description. Try not to put the same rule in both places, because if you update one and forget the other, Claude ends up with mixed signals.


Step 6: Create the MCP Server

1. From the main menu, click on MCP.

2. Then click the Add MCP server button.

3. Give the MCP server a name like BCTrialBalance and a brief description, such as Business Central Trial Balance report. Then click Add.


Step 7: Create the MCP Server Tools

Chart of Accounts tool

The Business Central connector uses a default list called Accounts. This is the list this MCP tool points to. It returns the G/L accounts with the account number, name, account type and Income/Balance fields.

1. Click Tools in the left navigation menu.

2. Click the Add button and choose Get data from the dropdown.

3. Set the Connector to your Business Central Production connector.

4. For the Group, select Financial, for the List select Accounts, and then set your Company.

5. Max records depends on how many accounts you may have. In this example, it is set to 2000.

6. Click Add.

Screenshot 2026 11 24 101650

7. After the tool is added and you are on the Settings page, set the Status field to Active.

8. Next click Parameters in the left navigation menu.

9. Add optional parameters for the fields you want Claude to be able to filter on, such as company, account number, account type, account category and Income/Balance. Here are some examples:

Screenshot 2026 11 23 103103

10. Next click Client instructions in the left navigation.

11. Click Add a client instruction.

12. From the Client dropdown choose Claude.

13. For Type, choose Shared instruction.

14. For Shared instruction, choose the one you created from Step 5 (bc-gl-sign-convention).

Screenshot 2026 11 24 115944

15. Click Response in the left navigation menu.

16. Set what the tool returns and in what format. Choose JSON list for the Response type.

17. For Description, enter the following:

One row per G/L account, sorted by account number. account-type is Posting, Heading, Total, Begin-Total or End-Total: only Posting accounts carry amounts; Begin-Total and End-Total pairs mark subtotal groups, and Total lines (such as NET INCOME) sum a range of accounts. income-balance is Balance sheet or Income statement. Use account-number to match rows from get_gl_balance_before_date and get_gl_activity_by_account. An account in this list but missing from those results has a zero amount.

18. Next click the Add field button at the top right.

19. For the Field, choose the fields you want returned. In this example, Account number, Account type, Income balance, and Name are used.

Screenshot 2026 11 25 083304

Beginning Balance Tool

This tool points to the Beginning Balance Summary List you built in Step 3 and returns the G/L accounts with their beginning balances.

1. Click Tools from the left navigation menu.

2. Click the Add button and choose Get data from the dropdown.

3. Set the Connector to your Business Central Production connector.

4. Set the Group to Financial, set the List to G/L Balance Before Date by Account No., and then set your Company.

5. Max records depends on how many accounts you have. In this example, it is set to 100000.

6. Click Add.

7. After the tool is added and you are on the Settings page, set the Status field to Active.

8. Next click Parameters in the left navigation menu.

9. Add optional parameters for the fields you want Claude to be able to filter on, such as company, account number, and before date. Here are some examples:

10. Next click Client instructions in the left navigation.

11. Click Add a client instruction.

12. From the Client dropdown choose Claude.

13. For the Type, choose Shared instruction.

14. For Shared instruction, choose the one you created from Step 5 (bc-gl-sign-convention).

Screenshot 2026 11 23 103304

15. Click Response in the left navigation menu.

16. Set what the tool returns and in what format. Choose JSON list for the Response type.

17. For Description, enter the following:

One row per G/L account with the net balance of all entries posted before the given date. Positive = debit, negative = credit.

18. Next click the Add field button at the top right.

19. For the Field, choose the fields you want returned. In this example, Account number and Balance are used.

This one tool covers both kinds of beginning balance. For Balance Sheet accounts, Claude passes the period start date. For Income Statement accounts, it also passes the fiscal year start date, so prior years’ income and expenses don’t carry into this year’s beginning balance.

Period Activity Tool

This tool points to the Period Activity Summary List you built in Step 4 and returns the G/L accounts with all the summarized activity for the date range you specify.

1. Click Tools in the left navigation menu.

2. Click the Add button and then choose Get data from the dropdown.

3. Set the Connector to your Business Central Production connector.

4. Set the Group to Financial, set the List to G/L Entries Summary by Account No., and then set your Company.

5. Max records depends on how many accounts you may have. In this example, it is set to 100000.

6. Click Add.

7. After the tool is added and you are on the Settings page, set the Status field to Active.

8. Next click Parameters in the left navigation menu.

9. Add optional parameters for the fields you want Claude to be able to filter on, such as company, account number, start date, and end date. Here are some examples:

10. Next click Client instructions in the left navigation.

11. Click Add a client instruction.

12. From the Client dropdown choose Claude.

13. For the Type, choose Shared instruction.

14. For Shared instruction, choose the one you created from Step 5 (bc-gl-sign-convention).

Screenshot 2026 11 23 103632

15. Click Response from the left navigation menu.

16. Set what the tool returns and in what format. Choose JSON list for the Response type.

17. For Description, enter the following:

One row per G/L account with activity posted between start-date and end-date, inclusive. Debit Amount and Credit Amount are the period totals, and Net Change is debits minus credits (positive = debit, negative = credit). Use account-number to match rows from get_gl_accounts and get_gl_balance_before_date. An account missing from this result had no activity in the period.

18. Next click Add field at the top right.

19. For the Field, choose the fields you want returned. In this example, Account Number, Credit Amount, Debit Amount, and Net Change are used.

Summing in Popdock keeps the amount of data sent to Claude small. Claude gets one row per account instead of thousands of individual entries, which is faster and much more reliable.


Step 8: Connect PopdockAI to Claude

A Popdock MCP server lets Claude use your Popdock lists as tools, so you can ask questions about your data in plain English and get answers, reports or documents back. Claude only sees the lists you publish to the MCP server, and the access you have in Popdock still applies. For the steps, see: How to Connect a Popdock MCP Server to Claude.

Screenshot 2026 11 23 103906


Step 9: Ask Claude for a Trial Balance

Now for the fun part. Start a chat and ask for the report in your own words, for example:

“Run a trial balance for CRONUS USA, Inc. for January 1 through March 31, 2026. Our fiscal year starts January 1.”

Claude calls the chart of accounts tool, pulls the beginning balance twice (once for the period start and once for the fiscal year start), pulls the period activity, and then builds the report. If you leave out the company or the dates, Claude asks for them instead of guessing, because that is what the Shared Instructions and required parameters tell it to do.

Screenshot 2026 11 23 104145


Making It Repeatable With a Claude Skill

Asking in plain English works great, but if you run a trial balance every month, you want the same layout and the same checks every time. That is where a Claude skill comes in. A skill is a set of instructions Claude follows whenever a request matches it, so you only have to explain the report once.

The skill tells Claude to:

  • Ask for the company, period start, period end and fiscal year start before calling any tools.
  • Run the data pulls in parallel and treat any account missing from a result as zero.
  • Calculate Beginning Balance, Period Debits, Period Credits, Net Change and Ending Balance for each posting account.
  • Lay out the rows by walking the chart of accounts, with Begin-Total and End-Total groups and a Net Income total.
  • Confirm that beginning balances sum to zero, debits equal credits, and ending balances sum to zero.
  • Build a landscape Word document with repeating headers, credits in parentheses, and a totals row.
Screenshot 2026 11 23 104252

The balance checks are the best part. If something doesn’t tie out, Claude still builds the report but puts an OUT OF BALANCE note under the title with the difference, so you see the problem immediately instead of finding it later.

A Note on Matching Business Central

If you compare the result against the Trial Balance report in Business Central, keep in mind that Business Central’s “as of” date includes postings on that date. In this report the Beginning Balance excludes the period start date, and the Ending Balance matches Business Central run as of the period end date. You can add this to the skill, so Claude explains it first whenever someone asks why the numbers look different.

Taking It Further

Because the skill is just instructions, it is easy to change. If you want a Budget or Variance column, add a Popdock list for budget amounts, publish it as another tool, and add it to the skill’s data pulls. If you only want the single-column Balance view, tell the skill to keep just the account number, name and ending balance.

If you have any questions about PopdockAI, the Business Central connector or Popdock in general, please reach out to our Support Team at support@eonesolutions.com.

Feeling stuck? Get the support and guidance you need to help you power through any data challenge

We're on your integration team. Connect with our people and let us know how we can help you.