---
title: "Claude Sonnet 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 32."
canonical: https://models.pydantic.dev/models/claude-sonnet-5/companies_house/
---

# Claude Sonnet 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 32.
>
> Markdown copy of https://models.pydantic.dev/models/claude-sonnet-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>`
- Any other question about the models: `GET https://models.pydantic.dev/api/ask?query=<question>`

Add `intent=<intent>&stack=<stack>&harness=<harness>` to the query string of all but the single model. An `OPTIONS` request to any endpoint returns its schema. The same five 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.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 100%  | 10 of 10     | $1.03 | 13       | 13         | 3.8 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

`gateway/anthropic:claude-sonnet-5` passed all 10 supplied `companies_house 0.3` cases. Seven finished with one `accounts` call; three required a second call. Total reported cost was `$1.0301` across 13 requests, averaging about `$0.103` per case. The accounts text was supplied directly, so these results demonstrate extraction and structured submission, not document retrieval.

#### Where it does well

The model handled all five tiers, including both comprehensive tier-5 cases in one call each. It reliably separated group and parent figures across statements and four-column notes, retained whole-pound precision, and converted £000 amounts correctly in both tier-1 cases and `tier2-SC121467`.

It generally applied signs correctly: expenses and creditors remained positive, while losses, deficits and tax credits were negative. It also preserved reported totals where additional reserves or associate results made simple arithmetic from the output fields insufficient. Undisclosed parent staff costs remained `null` in both tier-5 cases.

#### Mistakes it makes

Argument construction caused all three retries. Both tier-1 runs nested the entire answer inside `company`; `tier4-05840865` passed a string under `group` containing both entities. Validation feedback enabled immediate recovery without changing the extracted amounts.

Passing did not establish complete handbook compliance. Cube Logic’s `debtors=9792000` combines two separately disclosed maturity amounts despite the no-computation rule. `tier3-09727592` returned `null` for prior parent investments where the source shows a dash and the expected value is `0`. `tier4-05840865` omitted two expected zero-valued creditor rows.

For engineers, the evidence supports strong financial extraction with schema validation and retries, while highlighting the need to test zero-versus-missing distinctions and prohibit inferred totals explicitly. No provider failures occurred.

## Runs

### tier1-07054261

**Tool calling: passed.** Extracted Cube Logic’s figures correctly on the scored fields, but needed two `accounts` calls because the first payload was incorrectly nested. The corrected submission passed. ($0.14, 2 requests, 23 s)
- Right: Converted £000 figures correctly: turnover `16,382` became `16382000`, and net liabilities became `-6187000`.
- Right: Used restated comparatives, including prior profit after tax `-10439000` and tax credit `-138000`.
- Right: Fixed the argument structure without changing the financial figures.
- Mistake: First `accounts` call put the entire answer inside `company`, producing `company.company` and missing top-level statements. Company metadata and the four statements should have been sibling arguments.
- Mistake: Both submissions supplied `balance_sheet.debtors=9792000`, matching `(9658 + 134) * 1000`; the accounts show the two maturity amounts separately, not this combined total. This violates the prohibition on computing undisclosed figures; the combined field should have remained `null`. It was absent from the supplied expected fields.

### tier1-11022760

**Tool calling: passed.** Extracted TASKUS’s company details and both periods, then recovered from an argument-nesting error. The second `accounts` call passed. ($0.12, 2 requests, 30 s)
- Right: Correctly scaled investments to `16705000` and current creditors to `50167000`.
- Right: Preserved positive liability amounts and negative net assets `-20029000`.
- Right: Returned displayed rounded share capital as `0` and prior tax expense as positive `632000`.
- Mistake: First `accounts` call wrapped metadata and all statements inside `company`, triggering 11 missing-field errors. It should have supplied `company`, `balance_sheet`, `prior_balance_sheet`, `profit_and_loss`, and `prior_profit_and_loss` at the top level. The retry corrected this avoidable extra request.

### tier2-11600506

**Tool calling: passed.** Submitted consolidated balance sheets and profit and loss accounts in one `accounts` call. It passed without a correction. ($0.082, 1 requests, 12 s)
- Right: Selected group figures despite separate parent statements: current fixed assets `5232213` and net assets `-2896388`.
- Right: Kept creditors `10755412` and provisions `346932` positive while reporting net current liabilities as `-6090208`.
- Right: Preserved whole-pound precision, including interest receivable `91` and profit after tax `520795`.

### tier2-SC121467

**Tool calling: passed.** Returned both periods of consolidated accounts in one accepted `accounts` call. No retry or unnecessary tool activity was recorded. ($0.089, 1 requests, 18 s)
- Right: Converted £000 figures correctly, including tangible assets `4249000` and distribution costs `1387000`.
- Right: Distinguished prior tax credit `-571000` from current tax expense `299000`.
- Right: Captured current long-term creditors as `0` versus prior `4300000`, and prior operating loss as `-1818000`.

### tier3-05959188

**Tool calling: passed.** Returned four balance sheets covering group and parent, current and prior periods, in one `accounts` call. The submission passed. ($0.10, 1 requests, 14 s)
- Right: Separated group tangible assets `379315` from parent tangible assets `9602`.
- Right: Preserved the small comparative intangible-asset difference: group `14896135`, parent `14896091`.
- Right: Returned distinct group and parent net liabilities, `-13564855` and `-15485891`, without forcing the listed reserve fields to sum to equity.

### tier3-09727592

**Tool calling: passed.** Submitted group and parent balance sheets in one `accounts` call and passed. However, its prior parent investment value disagreed with the supplied expected value. ($0.086, 1 requests, 21 s)
- Right: Separated current group cash `2720339` from parent cash `2017699`.
- Right: Correctly handled parent net assets changing from `783514` to net liabilities of `-1632236`.
- Right: Mapped the deferred tax liability to positive `provisions=5889`.
- Mistake: In the sole `accounts` call, `parent_company.prior_balance_sheet.investments` was `null`, although the investment row shows a comparative dash and the expected value is `0`. It should have returned `0`; the reported pass did not expose this mismatch.

### tier4-05840865

**Tool calling: passed.** Extracted group and parent staff costs and creditors, but initially encoded the payload as a string. A second `accounts` call corrected the structure and passed, with zero-valued creditor rows still omitted. ($0.11, 2 requests, 23 s)
- Right: Separated group staff costs `5370606` from parent staff costs `174680`.
- Right: Mapped finance leases by maturity, including parent amounts `11658` within one year and `28174` after one year.
- Right: Recovered from the explicit `Input should be an object` validation error.
- Mistake: First `accounts` call supplied `group` as a string containing both entities and omitted the actual `parent_company` argument. It should have supplied two JSON objects.
- Mistake: The corrected call omitted the displayed zero group `amounts_owed_to_group` row and zero parent `bank_loans_and_overdrafts` row. Both have expected current and prior amounts of `0`; explicit zero entries would preserve the disclosed rows.

### tier4-NI626135

**Tool calling: passed.** Extracted staff costs and creditor notes for both entities in one accepted `accounts` call. It handled the four-column notes without a retry. ($0.089, 1 requests, 17 s)
- Right: Separated group wages `3830147` from parent wages `1726390`, including their comparatives.
- Right: Correctly distinguished amounts owed to group undertakings: group `3668476`, parent `10067741`.
- Right: Preserved zero current long-term bank loans alongside prior `5836`, and separate long-term finance leases of `689258` and `686105`.

### tier5-12026946

**Tool calling: passed.** Returned the extensive Cambium extraction, including metadata, directors, statements, staff costs and creditor breakdowns, in one accepted `accounts` call. ($0.12, 1 requests, 40 s)
- Right: Identified all four expected directors and classified the accounts as audited, full and consolidated.
- Right: Separated group investments `8460799` from parent investments `18430604`.
- Right: Copied reported loss before tax `-4801087`, preserving the effect of the separately disclosed associate loss rather than recomputing from only operating profit and interest.
- Right: Left undisclosed parent staff-cost fields `null` and preserved prior group tax credit `-51830`.

### tier5-NI037684

**Tool calling: passed.** Returned the comprehensive John Mulholland Motors extraction in one `accounts` call. It passed with both entities’ figures and the requested directors. ($0.092, 1 requests, 31 s)
- Right: Correctly identified medium, audited, consolidated accounts and directors A Mulholland and S Mulholland.
- Right: Separated group stocks `7357548` from parent stocks `5082704`.
- Right: Mapped directors’ loans to `amounts_owed_to_directors`, with current `18372` and prior `5938`.
- Right: Returned group staff costs `1303679` while leaving undisclosed parent staff costs `null`.
