---
title: "Gemini 3.8 Flash 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-3.8-flash/companies_house/
---

# Gemini 3.8 Flash 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-3.8-flash/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-3.8-flash.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 100%  | 10 of 10     | $0.31 | 10       | 10         | 4.7 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 in tool-calling mode, across tiers 1–5 (two cases per tier). Every case took exactly **1 request** with no validation failures or retries. Cost per case ranged from **$0.0258** (tier2-11600506) to **$0.0392** (tier2-SC121467), averaging about **$0.031** and totalling about **$0.31**. No reviewer found a scored field wrong. Several passes do depend on the grader treating null and 0 as equivalent.

#### Where it does well

- **Unit scaling:** On accounts presented in £000 (tier1-07054261, tier1-11022760, tier2-SC121467), it multiplied every figure by 1,000 correctly. For example, turnover 16,382 became 16,382,000.
- **Sign conventions:** It consistently entered deficits as negatives, such as net assets of -20,029,000 in tier1-11022760 and -13,564,855 in tier3-05959188. It kept liabilities and costs positive, and gave prior-year tax credits as negatives, such as -138,000 and -571,000.
- **Group vs parent separation:** In tier 3–5 cases it kept consolidated and company-only figures apart. Examples are group vs parent cash in tier3-09727592 and group vs parent investments in tier3-05959188. In tier4-05840865, it recorded amounts owed to group as 1,538,825 for the parent and 0 for the group.
- **Not inventing values:** It returned null for lines the accounts don't show, such as investments and share premium in tier2-11600506 and intangible assets in tier5-NI037684.
- **Internal consistency:** Staff cost components add up to the stated totals (tier4-NI626135), and creditor lines reconcile to their totals (tier4-05840865).

#### Mistakes it makes

All of these are minor, and none caused a failure:

- **Inconsistent null vs 0 for nil/dash lines:**
  - It returned null where 0 was expected in three cases: tier1-07054261, tier1-11022760 and tier3-09727592.
  - In two other cases it did the reverse, returning 0 where null was arguably correct: tier2-SC121467 and tier5-12026946.
  - Reviewers flagged that these passes may rely on grader leniency.
- **Omitted zero lines:** In tier4-05840865 it left out group creditor categories instead of listing them as 0.
- **Possibly copied figure:** In tier3-09727592 it reported provisions of 5,889 in all four periods. This field is unscored but worth checking.
- **Extra or unexpected fields:**
  - In tier5-12026946 it included a director who had resigned. The expected answer also lists him.
  - In tier5-NI037684 it reported a group fixed_assets figure that is not among the expected fields.

#### 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 reliably completed each extraction in a single `accounts` call at about $0.03 per case.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent pulled the company details, both balance sheets and both profit and loss accounts for Cube Logic Limited (£000 accounts scaled to pounds) in a single accounts call. The run passed with no validation failures. ($0.029, 1 requests, 23 s)
- Right: Multiplied the £000 figures by 1,000 throughout, e.g. turnover 16382 became 16,382,000.
- Right: Signed the deficits correctly: net assets -6,187,000, P&L reserve -8,457,000, net current assets -8,967,000.
- Right: Returned the prior-year tax credit as -138,000 and current tax as 0.
- Right: Identified the accounts as full, audited, non-consolidated, with the correct periods and company number 07054261.
- Right: Finished in one call with no retries.
- Mistake: Set prior_profit_and_loss.interest_receivable to null where the expected answer is 0. The accounts probably show a dash for that year. The grader accepted it, so the pass may be partly lenient here.

### tier1-11022760

**Tool calling: passed.** The agent pulled every requested figure from the TaskUs Limited 2025 accounts (in £000, scaled by 1,000) and submitted them in one `accounts` call. The submission passed with no validation failures. ($0.030, 1 requests, 35 s)
- Right: Multiplied all £000 figures by 1,000 correctly, e.g. creditors within one year 50,167 → 50167000.
- Right: Signed the deficit figures correctly: net assets -20029000, net current assets -36631000, P&L reserve -20196000, prior net current assets -1159000, prior loss before tax -1230000.
- Right: Kept liabilities and costs positive, and gave the tax charges as positive amounts (312000 and 632000).
- Right: Identified the company details correctly: full, audited, non-consolidated accounts with the right period dates.
- Right: Finished in a single submission with no retries.
- Mistake: Prior-year other_operating_income was returned as null where the expected answer was 0. The likely reason is that the accounts showed a dash or nil for that year. The grader accepted it, but 0 would have been more accurate if a dash was shown.

### tier2-11600506

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both years out of the Furat Acquisitions accounts with a single accounts call. Every expected field matched and the run passed. ($0.026, 1 requests, 19 s)
- Right: It sent one accounts call with no validation failures, so there was no wasted retry.
- Right: It entered the deficits as negatives: net current assets -6,090,208, total assets less current liabilities -857,995 and net assets -2,896,388.
- Right: It kept costs, tax and interest payable positive, as the handbook requires.
- Right: It used the group (consolidated) figures, not the parent company's own balance sheet.
- Right: It filled in lines the accounts did not show, such as investments and share premium, as null rather than inventing values.

### 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. It submitted everything in a single accounts call, which passed with no validation failures, and every scored field matches the expected answer. ($0.039, 1 requests, 43 s)
- Right: Multiplied the £000 figures by 1,000 correctly, e.g. cash 2,855 became 2855000 and turnover 34,021 became 34021000.
- Right: Took the group (consolidated) figures, not the parent company's own.
- Right: Signed the deficit P&L reserve as negative (-1296000 current, -1176000 prior) and the prior-year loss as negative (PBT -1678000, PAT -1107000).
- Right: Gave the prior-year tax credit as -571000 and the current-year tax charge as positive 299000, as the handbook requires.
- Right: Used null for lines the accounts don't show (investments, share_premium, other_operating_income) and finished in a single tool call.
- Mistake: Minor: in the single accounts call it set current-year creditors_after_one_year to 0 rather than null. That field isn't scored, and the call passed, so this may be a legitimate 'nil' comparative shown in the accounts. It is not checkable from the shortened transcript.

### 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. Every scored field matched the expected answer and validation passed. ($0.032, 1 requests, 16 s)
- Right: Kept the group (consolidated) figures separate from the parent company's own figures, e.g. tangible assets 379,315 for the group against 9,602 for the parent, and cash 1,720,386 against 1,675,323.
- Right: Gave the deficit fields negative signs (net assets -13,564,855, P&L reserve -25,824,630) and left creditors positive, as the handbook requires.
- Right: Set investments to null for the group, which shows none, while returning the parent's investments of 2,467 and 2,446.
- Right: Completed the task in one call with no validation failures.

### tier3-09727592

**Tool calling: passed.** The agent pulled the group and parent company balance sheets for both years out of the Tyk Technologies accounts and submitted them in a single `accounts` call. The submission was accepted with no validation failures and passed. ($0.028, 1 requests, 42 s)
- Right: It submitted every field in one call, with no retries or wasted steps.
- Right: It kept the group figures and the parent company's own figures apart correctly, for example group cash 2,720,339 against company cash 2,017,699, and company investments of 40,275 against null for the group.
- Right: It entered deficits as negatives as the handbook requires: group net assets -3,674,263, company net assets -1,632,236, and profit and loss reserves of -32,613,535 (group) and -30,571,508 (company).
- Right: Every checked figure matched the expected answer, including totals such as total assets less current liabilities (745,815 group, 535,685 company).
- Mistake: The agent gave the parent company's prior-year investments as null, but the expected answer is 0. The prior-year column probably shows a dash or zero for investments. The run still passed, so the grader appears to have treated null and 0 as equivalent.
- Mistake: It gave provisions as 5,889 in all four periods, including both prior years. That is worth checking, but provisions were not among the expected fields, so the grader did not test it.

### tier4-05840865

**Tool calling: passed.** The agent pulled the group and parent company staff costs and creditors from the accounts in a single `accounts` call. The submission passed, and every checked field matches the expected answer. ($0.027, 1 requests, 21 s)
- Right: Kept group and parent figures apart: parent amounts owed to group of 1,538,825 vs group 0, and parent staff costs total of 174,680 vs group 5,370,606.
- Right: All within-one-year creditor lines are consistent with the totals: group 4,229,724 and parent 1,808,163.
- Right: Took the parent's after-one-year finance leases (28,174, prior 39,831) and its total correctly.
- Right: Kept the zero current-year bank loans (0) while carrying the prior-year figure of 10,251.
- Right: Finished in a single submission, with no wasted calls.
- Mistake: The group's omitted categories, such as amounts owed to group, were simply left out of the submission rather than entered explicitly as zero lines. This was harmless here, but the expected answer does list them as 0.

### tier4-NI626135

**Tool calling: passed.** The agent made a single `accounts` call returning the creditors and staff-costs figures for both the group and the parent company. The run passed with no validation failures, and every expected field matched. ($0.028, 1 requests, 17 s)
- Right: Kept the group and parent-company figures separate across all creditor categories, current and prior.
- Right: Recorded bank loans due after one year as 0 current and 5836 prior, matching the accounts' explicit nil line.
- Right: The staff cost components add up to the stated totals (group 3830147+416276+158027=4404450), consistent with the accounts.
- Right: Submitted in one call without needing a retry.

### tier5-12026946

**Tool calling: passed.** The agent extracted the group and parent company accounts for The Cambium Group UK Holdings Limited in a single `accounts` call and passed the check. All key figures match the expected answer. ($0.036, 1 requests, 33 s)
- Right: It returned the consolidated and parent-company balance sheets separately, each with its prior-year comparatives.
- Right: Negative figures were signed correctly: net current liabilities (-14613956), the loss reserves, and the prior-year tax credit (-51830).
- Right: It took the creditors breakdown from the notes for both the group and the parent, including the parent's amounts owed to group (6050000).
- Right: It finished in one call with no failed checks to correct.
- Mistake: For the parent's current-year creditors after one year it returned 0, and for the prior-year trade creditors it returned 0. Where the accounts show no figure (a dash or blank), null is arguably the right value, but the check accepted 0.
- Mistake: It included Mr R Thompson as a director even though he resigned on 13 August 2025. The expected answer also lists him, so this did no harm.

### tier5-NI037684

**Tool calling: passed.** The agent pulled the full group and parent company accounts for John Mulholland Motors Limited and submitted them in one `accounts` call. The checks accepted the output and the run passed. ($0.032, 1 requests, 29 s)
- Right: It kept the consolidated figures apart from the parent company's, including the separate creditor breakdowns (e.g. trade creditors prior: group 2698613 vs parent 2689140).
- Right: Lines the accounts do not show were left null rather than computed, e.g. intangible_assets and creditors_after_one_year.
- Right: Parent investments of 300 and fixed_assets of 3599359 were taken correctly, as distinct from tangible assets of 3599059.
- Right: It finished in a single submission with no failed checks.
- Mistake: The group fixed_assets figure (4122359) is not among the expected fields, though it equals tangible assets. This is minor and did not affect the pass.
