---
title: "Claude Sonnet 5.5 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/claude-sonnet-5.5/companies_house/
---

# Claude Sonnet 5.5 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/claude-sonnet-5.5/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/claude-sonnet-5.5.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ---- |
| Tool calling | 100%  | 10 of 10     | $0.81 | 10       | 10         | 70 s |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

Ten cases were reviewed, two from each of tiers 1–5. **All 10 passed**, and every one finished in **a single request** with no validation failures or retries. Cost per run ranged from $0.0625 (tier1-11022760) to $0.0989 (tier5-12026946). The total was $0.807, an average of about $0.081.

#### Where it does well

- **Unit scaling:** It converted £000 accounts to pounds correctly every time. Examples are turnover of 16,382,000 in tier1-07054261 and cash of 2,855,000 in tier2-SC121467.
- **Sign conventions:** It made deficits and bracketed figures negative, such as net assets of -6,187,000 and a prior tax credit of -138,000 in tier1-07054261. Costs, creditors and tax charges stayed positive. Profit lines reconciled.
- **Group vs parent separation:** In all the tier 2–5 cases it took consolidated figures rather than parent-only ones, or kept the two apart when both were required. For example, tier3-05959188 has prior intangibles of 14,896,091 for the parent against 14,896,135 for the group. tier4-NI626135 has amounts owed to group of 3,668,476 for the group against 10,067,741 for the parent.
- **Notes extraction:** The creditor line items add up to the reported totals in both tier 4 cases (4,229,724 and 15,752,489). In tier5-12026946 it listed all four directors, including one who resigned during the year.
- **Missing lines:** It generally used null for lines the accounts do not show, rather than inventing zeros.

#### Mistakes it makes

None of these caused a failure, but they show where the output is less reliable:

- **Inconsistent null vs 0 (5 cases):**
  - It returned null where the expected answer has 0 in tier1-11022760 (prior other operating income) and tier3-09727592 (parent prior investments).
  - It returned 0 where null was likely correct in tier2-SC121467 and tier5-12026946.
  - In tier4-05840865 it omitted a field that should have been 0.
- **Unsupported or suspicious values:**
  - tier5-NI037684 copied the group staff costs into the parent block.
  - tier3-09727592 gave an identical provisions figure, 5,889, for all four entity/period combinations.
  - tier5-12026946 had an inconsistent empty `{}` vs null for staff costs.
- **Extra ungraded fields:** tier3-05959188 and tier4-05840865 included fields the expected answer does not score. Their accuracy was not checked.

Because the ungraded fields were not verified, the 10/10 pass rate does not cover them.

#### Tool calling compared with code mode

All 10 runs used tool calling. There is **no code-mode data**, so the two modes cannot be compared. In tool mode the model completed each extraction in one call for about $0.06–$0.10.

## Runs

### tier1-07054261

**Tool calling: passed.** The agent read the Cube Logic Limited accounts (presented in £000) and made a single accounts call with company details, both balance sheets and both P&L accounts, all scaled to pounds. Every figure matched the expected answer and the run passed. ($0.089, 1 requests, 5 s)
- Right: Multiplied the £000 figures by 1,000 correctly throughout (e.g. turnover 16382000, creditors within one year 20446000).
- Right: Gave deficit fields correct negative signs (net current assets -8967000, net assets -6187000, P&L reserve -7530000 prior) while keeping costs and creditors positive.
- Right: Recorded the prior-year tax credit as -138000 and the current-year tax as 0, so profit after tax (-10439000) reconciles with profit before tax (-10577000).
- Right: Used null for lines not shown (stocks, provisions, creditors after one year, distribution costs).
- Right: Finished in one call with no validation failures.

### tier1-11022760

**Tool calling: passed.** The agent extracted company details, both balance sheets and both P&L accounts for TaskUs Limited (amounts in £000, scaled up by 1,000) in a single accounts call. The run passed with no validation failures. ($0.062, 1 requests, 5 s)
- Right: Scaled all £000 figures by 1,000 correctly, e.g. investments 16,705,000 and creditors within one year 50,167,000.
- Right: Kept the signs of deficit figures right: net current assets -36,631,000, net assets -20,029,000, prior profit before tax -1,230,000.
- Right: Reported the costs (administrative expenses, interest payable) and the tax charge as positive amounts.
- Right: Gave called-up share capital as 0 rather than null, matching the accounts.
- Right: Completed the task in one call with no validation failures.
- Mistake: Prior-year other_operating_income was returned as null where the expected answer is 0. The check accepted it, but 0 would have matched the comparative column more exactly.

### tier2-11600506

**Tool calling: passed.** The agent made a single accounts call with the group balance sheet and P&L for both periods. Every value matches the expected answer, there were no validation failures, and the run passed. ($0.073, 1 requests, 5 s)
- Right: Signed the deficit figures correctly as negatives (net current assets, net assets, total assets less current liabilities in the current year, P&L reserve, shareholders' funds) while keeping costs and creditors positive.
- Right: Took the figures from the group (consolidated) statements, not the parent company balance sheet.
- Right: Used null for lines not shown (investments, investment property, share premium, distribution costs), not zero.
- Right: Finished in one call with no retries.

### tier2-SC121467

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both years from the Franke UK Holding accounts, which are presented in £000, and submitted them in one accounts call with no validation failures. Every graded field matched the expected answer. ($0.083, 1 requests, 5 s)
- Right: Multiplied the £000 figures by 1,000 correctly throughout, e.g. cash 2,855,000 and creditors within one year 8,804,000.
- Right: Signed the bracketed figures correctly: P&L reserve -1,296,000 and -1,176,000, prior profit before tax -1,678,000, prior profit after tax -1,107,000, and the prior tax credit -571,000.
- Right: Used group (consolidated) figures rather than the parent company's own balance sheet.
- Right: Finished in a single submission with no failed checks.
- Mistake: It put creditors_after_one_year at 0 for the current year rather than null. This was not graded, but if the line is absent from the balance sheet, null is the convention.

### tier3-05959188

**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 with no validation failures. ($0.091, 1 requests, 5 s)
- Right: Got all four balance sheets right in a single submission, with no retries.
- Right: Kept the group figures and the parent company's own figures apart correctly, including the parent's investments (2,467 and 2,446) and its slightly different prior-year intangibles (14,896,091 against the group's 14,896,135).
- Right: Signed the deficit figures (net assets, profit and loss reserve, shareholders' funds) as negative and kept creditors positive.
- Right: Returned null for lines the accounts do not show (stocks, provisions, investment property, group investments) rather than inventing zeros.
- Mistake: The group figures for debtors (6,119,909 and 3,360,379) and creditors after one year (34,844,638 and 27,503,256) are not among the expected fields. They were probably not graded, so their accuracy cannot be checked from the transcript.

### tier3-09727592

**Tool calling: passed.** The agent pulled the group and parent company balance sheets for both years from the Tyk Technologies accounts in one `accounts` call, with no validation failures. The run passed: every graded field matched. ($0.074, 1 requests, 5 s)
- Right: Kept net current assets positive but net assets negative for the group (744,329 vs -3,674,263) and set the deficits as negatives, as the handbook's sign rules require.
- Right: Kept the group and parent figures apart correctly, e.g. parent fixed assets 41,761 including investments of 40,275 against group fixed assets of 1,486.
- Right: Got all comparative figures right, including the parent's prior net assets of +783,514 against the group's -1,437,569.
- Right: Finished in one submission with no failed checks.
- Mistake: The parent's prior-year investments were returned as null, while the expected answer has 0. The grader seems not to have penalised this, but it is a small gap: the column was probably shown as nil or a dash.
- Mistake: It returned the same provisions figure, 5,889, for all four periods and entities. That looks suspicious, though provisions were not graded.

### tier4-05840865

**Tool calling: passed.** The agent extracted the group and parent company staff costs and creditors notes in a single accounts call. Every figure the checker scored matched the expected answer and the run passed. ($0.076, 1 requests, 7 s)
- Right: Kept the group and parent-company figures separate across both entities and both periods.
- Right: Put each creditor line in the right category and due period. The parent's 'amounts owed to group undertakings' went to amounts_owed_to_group, and the group's nil current-year bank loan was entered as 0 with a prior of 10251.
- Right: The creditor lines add up to the reported totals. Group within one year comes to 4,229,724 and parent within one year to 1,808,163.
- Right: Got it right on the first submission, with no validation failures and no retries.
- Mistake: The output has a few fields the expected answer does not score: social security costs, the group's after-one-year creditors, and creditors_after_one_year of 264243. These did no harm. The group omitted amounts_owed_to_group, where the expected answer has 0, and that also passed.

### tier4-NI626135

**Tool calling: passed.** The agent pulled group and parent-company staff costs and creditors (current and prior) from the Diamond Trucks accounts in a single accounts call. Every graded field matched the expected answer and the run passed. ($0.081, 1 requests, 8 s)
- Right: Kept the group and parent company figures apart, e.g. amounts owed to group of 3,668,476 for the group versus 10,067,741 for the parent.
- Right: Returned the after-one-year bank loan as 0 with a prior of 5,836, instead of null.
- Right: Totals agree with their line items: group within-one-year creditors sum to 15,752,489 and the parent's sum to 17,897,307.
- Right: Social security costs were reported in addition to the other staff cost lines, and the totals are consistent with them.
- Right: The submission was made in one call with no validation failures.

### tier5-12026946

**Tool calling: passed.** The agent pulled the group and parent company figures out of the Cambium Group accounts in one accounts call. The submission passed and its figures match the expected answer. ($0.099, 1 requests, 14 s)
- Right: Gave the bracketed figures the right signs: net current assets, the P&L reserve, operating profit and profit before and after tax are negative, and the prior-year tax credit is -51830.
- Right: Kept the group figures and the parent company's own figures apart, including the parent's creditors breakdown.
- Right: Listed all four directors, including Mr R Thompson, who resigned during the year.
- Right: Finished in a single tool call with no failed checks.
- Mistake: The parent's current-year creditors_after_one_year was entered as 0 and the parent's trade creditors prior_amount as 0. The expected answer has no value for either, so null may have been the better choice if the accounts show a dash. It did not cause a failure.
- Mistake: Parent staff_costs was submitted as an empty object {} while prior_staff_costs was null, which is inconsistent. It was harmless.

### tier5-NI037684

**Tool calling: passed.** The agent read John Mulholland Motors Limited's consolidated medium-company accounts and submitted the full group and parent-company figures in one accounts call. The submission was accepted and the run passed. ($0.079, 1 requests, 10 s)
- Right: Correctly separated the group (consolidated) figures from the parent company's own balance sheet and creditors, e.g. group debtors 713,051 vs parent debtors 3,616,379.
- Right: Captured parent investments of 300 and fixed assets of 3,599,359, and set parent prior investments to null where nothing was shown.
- Right: Mapped all six creditor categories, with prior amounts, for both entities, including directors' loans (18,372) and 'other' (95,665).
- Right: Recorded tax as a positive charge and used null for lines the accounts do not show (intangibles, creditors after one year, share premium).
- Right: Finished in a single call with no failed checks.
- Mistake: Filled the parent_company staff_costs block with the group figures (total 1,303,679). The expected answer has no parent staff-cost fields, so these values are probably an unsupported duplication, though it did not cause a failure.
