---
title: "Gemini 4 Neon 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-neon/companies_house/
---

# Gemini 4 Neon 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-neon/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-neon.md

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

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed **10 of 10 cases**, all in tool-calling mode. It covered tiers 1–5, two cases per tier. Every case finished in **one request** with no validation failures and no retries. Cost per case ranged from **$0.107 to $0.213**, averaging about **$0.145** ($1.45 in total). Tier 5 cases cost more ($0.213 and $0.195) than tiers 1–4 ($0.107–$0.150).

#### Where it does well

- **Scaling £000 accounts:** In tier1-07054261, tier1-11022760 and tier2-SC121467 it multiplied every figure by 1,000 (e.g. turnover 16,382 → 16382000). It also left share capital at 1000 where that was correct.
- **Sign conventions:** It recorded deficits, losses and tax credits as negative (e.g. prior tax credit -571000 in SC121467; operating loss -4,462,968 in tier5-12026946). It kept costs, interest payable and tax charges positive.
- **Separating group and parent figures (tiers 2–5):** It used consolidated figures where required and kept parent figures apart, including small differences. In tier3-05959188 the parent's prior-year intangibles were 14,896,091 against the group's 14,896,135. In tier5-NI037684 the parent's investments (300) appeared on the parent only.
- **Choosing null or 0:** It set lines the accounts do not show (stocks, provisions, investment property, distribution costs) to null. It used 0 where the expected answer has 0, such as nil bank loans with a prior-year comparative in tier4-05840865 and tier4-NI626135.
- **Creditor and staff-cost breakdowns (tiers 4–5):** It extracted these per entity and per year, and the totals agreed with the sums of their lines (NI626135).

#### Mistakes it makes

None of these caused a failure, and most involved fields the grader did not score.

- **Using 0 instead of null:** current-year creditors_after_one_year in tier2-SC121467, and the parent's creditors_after_one_year in tier5-12026946.
- **Leaving out explicit zeros:** tier4-05840865 omitted amounts_owed_to_group and parent bank_loans, which the expected answer has as 0.
- **Adding extra fields:** social_security_costs in tier4-NI626135, and unscored group creditors and debtors in tier3-05959188.
- **Possible copy-across:** provisions is 5,889 in all four columns in tier3-09727592. It looks suspicious but is unverified because the field was not graded.
- **Officer handling:** in tier5-12026946 it listed a director marked "(Resigned 13 August 2025)". The expected answer also includes him, so this did no harm.

#### Tool calling compared with code mode

All 10 cases ran in **tool-calling mode only**. The notes contain no code_mode runs, so the two modes cannot be compared. In tool mode the model needed only one request per case.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent made a single `accounts` call that extracted the company details, both balance sheets and both P&L accounts from the £000-presented accounts, scaling them correctly. The output matched every expected field and passed with no validation failures. ($0.15, 1 requests, 51 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. turnover 16,382 → 16382000) and kept share capital at 1000.
- Right: Applied the sign rules correctly: net assets, net current assets, P&L reserve and the operating, pre-tax and post-tax losses are negative, while costs and interest payable are positive.
- Right: Recorded the prior-year tax credit as -138000 and current-year tax as 0, consistent with PBT -927000 equalling PAT -927000.
- Right: Used null for lines not shown (stocks, provisions, creditors after one year, distribution costs, other operating income) and 0 for the prior interest receivable.
- Right: Got the company metadata right (full, audited, not consolidated, period dates, company number with its leading zero) and finished in one call.

### tier1-11022760

**Tool calling: passed.** The agent made one `accounts` call that extracted the company details, both balance sheets and both P&L accounts for TaskUs Limited (in £000, scaled up to pounds). It passed with no validation failures. ($0.12, 1 requests, 42 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. investments 16,705 → 16705000).
- Right: Signed the deficit fields correctly: net assets -20029000, net current assets -36631000, P&L reserve -20196000, prior profit after tax -1862000.
- Right: Left tax charges as positive amounts (312000 and 632000).
- Right: Recorded called-up share capital as 0 rather than null, and prior other operating income as 0, both matching the expected answer.
- Right: Set entity-level flags correctly: consolidated false, audited true, accounts_type full.
- Right: Finished in a single call with no validation failures.

### tier2-11600506

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both periods from the Furat Acquisitions Ltd accounts in a single `accounts` call. Every expected field matched, so the run passed. ($0.11, 1 requests, 31 s)
- Right: It used group (consolidated) figures rather than the parent company's own figures.
- Right: Signs were handled correctly: net current assets, net assets, the P&L reserve and shareholders' funds were negative, while costs, interest payable and tax were positive.
- Right: It set fields the accounts do not show to null (investments, investment_property, share_premium, distribution_costs).
- Right: Total assets less current liabilities of -857995 and the prior-year 1430307 were recorded with the correct signs.
- Right: It finished in one submission with no validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent extracted the group's consolidated balance sheet and P&L for both years from accounts presented in £000, scaling them to pounds, in a single `accounts` call. Every graded field matched the expected answer and the run passed. ($0.13, 1 requests, 43 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. cash 2,855 became 2855000).
- Right: Signed the brackets correctly: the profit and loss reserve is -1296000, prior PBT -1678000, prior PAT -1107000 and the prior tax credit -571000. Current-year tax of 299000 is a positive charge.
- Right: Used group (consolidated) figures, not the parent company's balance sheet.
- Right: Got everything right on the first call with no validation failures, so no requests were spent on retries.
- Mistake: The output sets current-year creditors_after_one_year to 0 rather than null, even though the prior year shows 4,300,000. This is defensible if the balance sheet shows a dash or nil, but the transcript does not show which. The field was not graded.

### tier3-05959188

**Tool calling: passed.** The agent read the Tribe Payments group accounts and made a single `accounts` call holding both the consolidated and the company balance sheets for both years. The run passed, and every expected field matches. ($0.14, 1 requests, 31 s)
- Right: It kept the group and parent company figures apart and got the small differences right. Parent intangibles prior are 14,896,091 against the group's 14,896,135, and parent tangibles are 9,602 against the group's 379,315.
- Right: It recorded the deficit fields (net assets, profit and loss reserve, shareholders' funds) as negative numbers, as the handbook requires.
- Right: It returned null for lines the accounts do not show (stocks, provisions, investment property, group investments) instead of filling them with zero.
- Right: It finished in one submission that raised no validation failures.
- Mistake: Nothing material. The group's creditors after one year and debtors were also filled in. The expected answer does not score them, but they cannot be checked against the shortened transcript.

### tier3-09727592

**Tool calling: passed.** The agent extracted the group and parent-company balance sheets for both years in a single accounts call. Every graded field matched the expected answer and the run passed. ($0.14, 1 requests, 43 s)
- Right: Got all 50 graded fields right on the first call, without needing a validation retry.
- Right: Kept the signs correct for deficits (group net assets -3,674,263, P&L reserve -32,613,535) while recording liabilities as positive amounts.
- Right: Kept group and parent figures apart, e.g. parent fixed assets 41,761 including investments of 40,275 against group fixed assets of 1,486.
- Right: Returned the parent's prior-year investments as 0 rather than null, which matches the expected answer.
- Right: Set lines the accounts don't show to null (stocks, intangible assets, investment property, group investments).
- Mistake: Provisions is 5,889 in all four columns (group and parent, current and prior). That looks suspicious and may have been copied across, but provisions was not graded, so it is unverified.

### tier4-05840865

**Tool calling: passed.** The agent made a single `accounts` call that returned group and parent company staff costs and creditors, current and prior year, and passed. All expected fields matched. ($0.12, 1 requests, 36 s)
- Right: Separated the group figures from the parent company figures correctly for both the creditors and staff costs notes.
- Right: Returned the group's bank loans as 0 for the current year with 10,251 prior, rather than null.
- Right: Mapped the parent's amounts owed to group undertakings (1,538,825 / 1,524,980) to amounts_owed_to_group.
- Right: Took every within-one-year and after-one-year total, finance lease and staff cost figure directly from the accounts, with no computed values.
- Right: Finished in one call with no validation failures.
- Mistake: The agent omitted group and parent amounts_owed_to_group and the parent bank_loans line, which the expected answer has as 0. The grader accepted this, but listing them explicitly as 0 would have been more complete.

### tier4-NI626135

**Tool calling: passed.** The agent made one `accounts` call returning group and parent company creditors (within and after one year) and staff costs for both years. Every expected field matched and validation passed. ($0.13, 1 requests, 39 s)
- Right: Group and parent company figures were kept separate and correct for all 10 creditor lines in each entity, including prior-year comparatives.
- Right: Bank loans after one year were recorded as 0 current with 5,836 prior, rather than null, matching the expected answer.
- Right: Creditor totals (15,752,489 group and 17,897,307 parent within one year) agree with the sums of their lines.
- Right: It finished in a single submission with no validation failures.
- Mistake: The output added social_security_costs fields (e.g. group 416,276 / 300,611), which the expected answer does not contain. They did no harm, but they go beyond what was graded.

### tier5-12026946

**Tool calling: passed.** The agent pulled the group and parent company figures from the accounts in a single accounts call. The output matched the expected answer and the run passed. ($0.21, 1 requests, 83 s)
- Right: Group P&L signs were handled correctly: operating loss -4,462,968, a tax charge of 72,816 kept positive and a prior-year tax credit of -51,830.
- Right: It kept the parent's figures separate from the group's, including the parent investments of 18,430,604 and the parent profit and loss reserve of -4,529,857.
- Right: It broke the creditors down by category for both group and parent, including finance leases due after one year (663,117).
- Right: Lines the accounts do not show, such as provisions, distribution costs and investment property, were set to null.
- Mistake: The parent's current-year creditors_after_one_year was returned as 0. The expected answer has no value for that field, so null would have fit better, though the check still passed.
- Mistake: Mr R Thompson was listed as a director, apparently without weighing the '(Resigned 13 August 2025)' note in the officers list. The expected answer also includes him, so this did no harm.

### tier5-NI037684

**Tool calling: passed.** The agent read the group accounts for John Mulholland Motors Limited and made one `accounts` call holding the group and parent-company balance sheets, P&L, staff costs and creditor breakdowns. The call was accepted and the run passed. ($0.20, 1 requests, 75 s)
- Right: It kept the consolidated figures and the parent-company figures apart. Examples: group tangible assets 4,122,359 against parent 3,599,059, and group stocks 7,357,548 against parent 5,082,704.
- Right: It put the parent's own fixed-asset investments (300) and fixed_assets total (3,599,359) on the parent only. The group's fixed_assets and investments were correctly left null.
- Right: It entered the tax charge (151,201), interest payable (30,856) and expense lines as positive amounts, as the handbook requires.
- Right: Within-one-year creditors were broken into six categories for both group and parent, and the current and prior amounts match the expected answer exactly. For example, parent trade creditors prior is 2,689,140 against group prior 2,698,613.
- Right: Lines the accounts do not show, such as creditors after one year, share premium and distribution costs, were returned as null rather than invented.
- Right: The task was done in a single submission with no retries.
