---
title: "Gemini 4 Carbon on Pydantic AI Companies House"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 20."
canonical: https://models.pydantic.dev/models/gemini-4-carbon/companies_house/
---

# Gemini 4 Carbon on Pydantic AI Companies House

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 100%; rank 1 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/gemini-4-carbon/companies_house/. Index for agents: https://models.pydantic.dev/llms.txt

**Agents: use the API for model information.** It answers a question in one request, where the pages need several.

- Choose a model for an agent: `POST https://models.pydantic.dev/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://models.pydantic.dev/select.md
- Search models by name: `GET https://models.pydantic.dev/api/search?query=<text>`
- List, filter and sort models: `GET https://models.pydantic.dev/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://models.pydantic.dev/api/models/<slug>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of the first three. An `OPTIONS` request to any endpoint returns its schema. The same four are tools of the MCP server at `https://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

About the benchmark: https://models.pydantic.dev/benchmarks/companies_house.md. The model on every Pydantic AI benchmark: https://models.pydantic.dev/models/gemini-4-carbon.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 100%  | 10 of 10     | $0.82 | 10       | 10         | 9.5 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed all 10 cases, all run in tool-calling mode. The cases cover tiers 1–5, two per tier. Every run finished in a **single request** with no validation failures and no retries. Cost per case ranged from $0.0601 (tier2-11600506) to $0.1031 (tier5-12026946). The total was $0.816, or about $0.082 per case. The harder tier 5 cases cost a little more ($0.0951–$0.1031) than the easier tiers.

#### Where it does well

- **Unit scaling:** It converted £000 accounts to pounds correctly. For example, in tier1-07054261 turnover of 16,382 became 16,382,000, and in tier2-SC121467 cash of 2,855 became 2,855,000.
- **Sign conventions:** It gave deficits negative signs (net assets, the P&L reserve and net current assets) and kept costs, tax and interest payable positive. It also handled harder cases:
  - It signed tax credits as negative, such as -138,000 in tier1-07054261 and -51,830 in tier5-12026946.
  - It left a positive prior-year total unchanged rather than forcing a negative sign onto it (1,430,307 in tier2-11600506).
- **Group vs parent separation:** In all six tier 3–5 cases it kept the consolidated figures apart from the parent company's own. In tier3-05959188 it even told apart near-identical figures: intangibles of 14,896,135 for the group against 14,896,091 for the parent. It filled fields such as investments for one entity and left them null for the other.
- **Null vs 0:** It usually told nil comparatives (0) apart from lines the accounts do not show (null). Examples are tier1-11022760, tier3-09727592 and tier4-NI626135.
- **Internal consistency:** The staff cost totals in tier4-NI626135 tie to their components.

#### Mistakes it makes

None of the following issues was penalised, but they show where the model is weak:

- **0 where null is correct:** It returned `creditors_after_one_year` as 0 for a line the accounts do not show, in tier2-SC121467 and in the parent balance sheet of tier5-12026946. Under the handbook, null was the correct value.
- **Missing zero lines:** In tier4-05840865 it left out lines that the expected answer gives as 0, such as the group's amounts owed to group undertakings. The case may have passed only because the grader treated a missing line as 0.
- **Unverified ungraded fields:** In tier3-09727592 it reported provisions of 5,889 identically in all four periods, and group creditors after one year of 4,414,189. The transcript shows no check against the accounts for either. In tier3-05959188 it filled extra fields that were not graded, and these did no harm.

The pattern is that the model is sometimes inconsistent about zero versus null, and it can add figures that are not graded and may not be checked. The grader is lenient about both.

#### Tool calling compared with code mode

The notes contain **no code-mode runs**, so the two modes cannot be compared. In tool-calling mode the model scored 10/10, used one call per case and averaged about $0.082 per case. Code mode would need its own evaluation before you rely on it.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent extracted the company details, both balance sheets and both profit and loss accounts from Cube Logic Limited's 2025 accounts in a single `accounts` call. Every expected field matched, and the run passed with no validation failures. ($0.088, 1 requests, 56 s)
- Right: Scaled every £000 figure correctly, e.g. turnover 16382 became 16,382,000 and share capital stayed at 1,000.
- Right: Applied the sign rules correctly: net assets -6,187,000, the P&L reserve deficit -8,457,000, and the prior-year tax credit -138,000. Cost and expense lines were kept positive.
- Right: Used null for lines not shown (stocks, provisions, creditors after one year, distribution costs). Recorded the prior-year interest receivable as 0 rather than null, which matched the expected answer.
- Right: Classified the accounts correctly: full, audited, not consolidated, and both periods were calendar years.
- Right: Finished in one tool call with no retries needed.

### tier1-11022760

**Tool calling: passed.** The agent extracted TaskUs Limited's single-entity accounts (in £000, scaled to pounds) in one accounts call. The output matched every expected field and passed with no validation failures. ($0.070, 1 requests, 52 s)
- Right: Scaled the £000 figures by 1,000 correctly, e.g. cash 3269000 and creditors within one year 50167000.
- Right: Applied the sign rules correctly: negative net assets (-20029000), net current assets (-36631000) and profit and loss reserve, with tax and expenses positive.
- Right: Set prior other operating income to 0 where the accounts showed a nil comparative, rather than null.
- Right: Recorded called-up share capital as 0 and identified the accounts as non-consolidated, full and audited.
- Right: Finished in a single submission with no retries.

### tier2-11600506

**Tool calling: passed.** The agent made a single `accounts` call that filled in the group's current and prior consolidated balance sheet and profit and loss figures. Every expected field matched and the run passed. ($0.060, 1 requests, 36 s)
- Right: Gave the deficit figures negative signs: net assets -2,896,388, net current assets -6,090,208, P&L reserve -2,896,788, and current-year total assets less current liabilities -857,995.
- Right: Kept the prior-year total assets less current liabilities positive at 1,430,307 and did not force a negative sign onto it.
- Right: Returned costs, tax and interest payable as positive amounts, as the handbook requires.
- Right: Took the group (consolidated) figures, not the parent company's.
- Right: Set distribution costs, investments, investment property and share premium to null because the accounts do not show them.
- Right: Finished in one call with no validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent pulled the group consolidated balance sheet and P&L for both years, scaling the £000 figures by 1,000, and submitted them in a single accounts call. Every expected field matched and the run passed. ($0.091, 1 requests, 89 s)
- Right: It multiplied the £000 figures by 1,000, e.g. cash 2,855 became 2855000.
- Right: It signed figures correctly: profit and loss reserve -1296000, prior profit before tax -1678000 and the prior tax credit -571000, while costs and interest payable stayed positive.
- Right: It returned group figures rather than the parent company's own figures.
- Right: It submitted once with no validation failures.
- Mistake: Current-year creditors_after_one_year was returned as 0 rather than null. It is not in the expected answer, so the run was not penalised, but 0 may not be a figure the accounts actually show.

### tier3-05959188

**Tool calling: passed.** The agent read the Tribe Payments group accounts and submitted the group and parent company balance sheets for both years in a single `accounts` call. It passed with no validation failures, and every graded field matched the expected answer. ($0.083, 1 requests, 43 s)
- Right: It kept the group (consolidated) and parent company figures apart, for example intangible assets of 14,896,135 for the group against 14,896,091 for the parent in the prior year.
- Right: It gave the deficit figures (net assets, shareholders' funds, profit and loss reserve) as negative and creditors as positive, as the handbook requires.
- Right: It set investments to null for the group but filled them for the parent (2,467 and 2,446), which shows it read each statement on its own.
- Right: It got everything right in one call, with no rework needed.
- Mistake: No material mistakes. It filled extra group fields that were not graded (debtors 6,119,909, creditors after one year 34,844,638), and these did no harm.

### tier3-09727592

**Tool calling: passed.** The agent read Tyk Technologies' group accounts and in one accounts call returned group and parent balance sheets for both years. Every graded field matched the expected answer, and the run passed with no validation failures. ($0.075, 1 requests, 46 s)
- Right: It kept the group's consolidated figures separate from the parent company's own. For example, parent cash is 2,017,699 against group cash of 2,720,339, and parent net assets are -1,632,236 against group net assets of -3,674,263.
- Right: It gave the deficit fields negative signs: net assets, shareholders' funds and the profit and loss reserve.
- Right: It returned the parent's prior-year investments as 0, as shown in the accounts, rather than null.
- Right: It finished in a single submission with no validation failures.
- Mistake: It returned some ungraded fields without the transcript showing any check against the accounts: provisions of 5,889 used identically in all four periods, and group creditors after one year of 4,414,189. These figures were not graded, so whether they are right is unconfirmed.

### tier4-05840865

**Tool calling: passed.** The agent pulled the group and parent company staff costs and creditors figures from the accounts in a single `accounts` call. It passed with no validation failures. ($0.074, 1 requests, 48 s)
- Right: Kept the group and parent company figures separate, e.g. parent amounts_owed_to_group 1,538,825 against no such line for the group.
- Right: Got every graded figure right, including the group creditors within one year total of 4,229,724 and the parent's of 1,808,163.
- Right: Mapped the creditors lines to the right categories, including finance leases due after one year for the parent (28,174, prior 39,831).
- Right: Finished in one call with no retries.
- Mistake: The agent left out zero-value lines that the expected answer contains: group amounts_owed_to_group of 0 and parent bank_loans_and_overdrafts of 0. The run still passed, perhaps because a missing line was accepted as matching 0, so this was possibly lucky rather than wrong.

### tier4-NI626135

**Tool calling: passed.** The agent pulled the group and parent company creditors notes and staff costs notes from the Diamond Trucks accounts and submitted everything in one accounts call. Every expected field matched and the run passed. ($0.077, 1 requests, 60 s)
- Right: It kept the group and parent company figures separate across all ten creditor lines and their totals, for both years.
- Right: It recorded the nil current-year bank loan due after one year as 0, with the prior figure of 5836, rather than leaving it out.
- Right: Each staff costs total ties to its components, e.g. group current year 3830147+416276+158027=4404450.
- Right: It finished in a single submission with no validation failures.

### tier5-12026946

**Tool calling: passed.** The agent extracted the group and parent company accounts for The Cambium Group UK Holdings Limited in one accounts call. The submission passed and matched the expected figures. ($0.10, 1 requests, 70 s)
- Right: The group P&L was correct, including the negative operating profit, profit before tax and profit after tax, and the sign of the tax line (a 72816 charge this year, a -51830 credit last year).
- Right: Seven group creditor lines were captured with prior amounts, including after-one-year finance leases of 663117.
- Right: Both group and parent balance sheets were extracted, with the parent share premium (44411810) and P&L reserve (-4529857) correct.
- Right: All four directors were listed, including R Thompson, who resigned in 2025.
- Right: The answer was submitted in a single call with no retries.
- Mistake: The agent set parent_company.balance_sheet.creditors_after_one_year to 0, while the expected answer leaves it unset (null), as the parent has no such line this year. The check did not penalise this, but per the handbook, null was the correct value for a line the accounts do not show.

### tier5-NI037684

**Tool calling: passed.** The agent read the John Mulholland Motors group accounts and submitted the full group and parent-company structure in a single accounts call. The output matched the expected answer and passed. ($0.095, 1 requests, 70 s)
- Right: It separated the consolidated figures from the parent company's own figures, for example group stocks of 7357548 against parent stocks of 5082704, and group debtors of 713051 against parent debtors of 3616379.
- Right: It returned null for lines the group balance sheet does not show, such as group fixed_assets and investments, while filling the parent's investments (300) and fixed_assets (3599359).
- Right: It captured the creditor breakdowns, including the prior amounts that differ between group and parent: trade creditors 2698613 for the group against 2689140 for the parent, and other creditors 103090 against 102990.
- Right: It finished in one submission with no retries.
