---
title: "Qwen3.8 27B on Pydantic AI Companies House"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 17 of 20."
canonical: https://models.pydantic.dev/models/qwen3.8-27b/companies_house/
---

# Qwen3.8 27B on Pydantic AI Companies House

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 17 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/qwen3.8-27b/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/qwen3.8-27b.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 80%   | 8 of 10      | $0.33 | 10       | 10         | 5.9 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed **8 of 10** cases. All 10 ran in **tools** mode. Every case took exactly **1 request**, and none had validation failures or retries. Cost per case ranged from **$0.0208 to $0.0613**, averaging **$0.033** ($0.333 total).

By tier, the results are unusual. Both **tier1** cases failed. Every case in **tiers 2–5** passed (8/8), and those cases include the harder group/parent and notes extractions.

#### Where it does well

- **Numeric extraction is reliable.** In every case, including the two failures, all graded figures matched.
- **Scaling and signs:** It multiplied £000 figures by 1,000 correctly (SC121467, 11022760, 07054261). It entered deficits and prior-year losses as negatives, tax credits as negative (e.g. -571000, -51830) and costs, charges and interest payable as positive.
- **Group vs parent separation:** It kept consolidated and company-only figures apart in all tier3–5 cases. One example is 05959188, with group tangible assets of 379,315 against 9,602 for the parent. It also handled parent-only investments and amounts owed to group (12026946, 05840865).
- **Notes detail:** Its staff cost and creditor breakdowns were internally consistent. In 05840865, the staff cost components sum to 5,370,606. In NI626135, the creditor totals reconcile.
- **Missing lines:** It usually set lines the accounts don't show to null, such as share premium and intangibles.

#### Mistakes it makes

- **Accounts classification (the only cause of failure):** In both tier1 cases (07054261, 11022760) it set `accounts_type` to `"small"` instead of `"full"`. Both filings had a strategic report, a full audit report and turnover well above small-company thresholds (£16.4m and £32.4m). The model extracts figures well but does not reason from those signals to the correct filing type.
- **Name casing:** In 11022760 it gave "TaskUs Limited" rather than "TASKUS LIMITED" from the cover. The reviewers were unsure whether the grader normalises case.
- **Ungraded quirks** that did not affect any result:
  - It sometimes used **0 instead of null** for lines that are probably absent (SC121467, 12026946, NI037684).
  - It gave a negative `other_operating_income` of -420005 in 12026946, which may be a mislabelled expense.
  - In 09727592, provisions of 5889 appear in all four periods, which may be a copied value.

#### Tool calling compared with code mode

All 10 cases ran in tools mode, so these notes give no basis for a comparison. In tools mode, the model consistently completed each case in a single call at low cost.

## Runs

### tier1-07054261

**Tool calling: failed.** The agent extracted every figure correctly in one call but set accounts_type to "small" instead of "full", so the run failed. ($0.061, 1 requests, 1.9 min)
- Right: All balance sheet figures for both years match, with £000 amounts scaled correctly and the deficit figures signed negative.
- Right: All profit and loss figures for both years match, including the prior-year tax credit of -138000 and the nil interest receivable.
- Right: The company number, the period dates, consolidated=false and audited=true are all correct.
- Mistake: In the single accounts call, company.accounts_type was set to "small" when the expected value is "full". The filing has a Strategic Report, a full audit report and a Statement of Comprehensive Income with turnover of £16.4m, which marks these as full accounts. Small companies are exempt from the Strategic Report, and the turnover is above the small-company threshold.

### tier1-11022760

**Tool calling: failed.** The agent extracted all figures in a single accounts call and matched every expected numeric field, but set accounts_type to "small" where "full" was expected, and the run failed. ($0.029, 1 requests, 29 s)
- Right: Correctly scaled £000 figures by 1,000 across both periods.
- Right: Handled the signs correctly: net current assets, net assets, P&L reserve and prior PBT/PAT are negative, while the tax charge is positive.
- Right: Got the swing in creditors classification right (prior creditors after one year £46,695,000, current year £104,000).
- Right: Recorded other operating income as 7,592,000 for the current year and 0 for the prior year.
- Right: Company number, periods, audited=true and consolidated=false were all correct.
- Mistake: In the single accounts call, the agent set company.accounts_type to "small" when it should have been "full". The filing has a strategic report, an independent auditor's report, a full statement of comprehensive income with turnover of £32.4m, and 16 pages of notes. Those are full accounts, not small-company accounts.
- Mistake: The name was given as "TaskUs Limited" (the mixed case from the narrative text) rather than "TASKUS LIMITED" as it appears on the cover. The grader may or may not normalise case.

### tier2-11600506

**Tool calling: passed.** The agent pulled the group's consolidated balance sheet and P&L for both periods in one accounts call. Every expected field matched and the run passed. ($0.021, 1 requests, 15 s)
- Right: It took figures from the group statements rather than the company balance sheet.
- Right: It kept the deficit figures negative (net current assets, net assets, P&L reserve, shareholders' funds) and left costs, tax and interest payable positive.
- Right: It used null for lines the accounts do not show (share premium, distribution costs, investments).
- Right: It finished in a single call with no validation failures.

### tier2-SC121467

**Tool calling: passed.** The agent extracted the group balance sheet and P&L for both years from the Franke UK Holding accounts, presented in £000, in a single accounts call. Every expected field matched and the run passed. ($0.025, 1 requests, 19 s)
- Right: Multiplied the £000 figures by 1,000 throughout (e.g. cash 2855000, net assets 8263000).
- Right: Signed the deficit P&L reserve as negative (-1296000 and -1176000) and the prior-year losses as negative (PBT -1678000, PAT -1107000).
- Right: Treated the prior-year tax credit as negative (-571000) and the current-year tax charge as positive (299000).
- Right: Kept costs and interest payable positive and used null for lines the accounts do not show (share_premium, investments).
- Right: Finished in a single tool call with no validation failures.
- Mistake: It returned creditors_after_one_year as 0 for the current year rather than null or a figure shown in the accounts. This field was not graded, so it did no harm, but 0 may not be what the balance sheet shows.

### tier3-05959188

**Tool calling: passed.** The agent took both group and parent company balance sheets for the current and prior year from the Tribe Payments accounts and submitted them in a single accounts call. It passed with no validation failures. ($0.021, 1 requests, 15 s)
- Right: It kept the group (consolidated) figures separate from the parent company's own figures, e.g. tangible assets of 379,315 for the group versus 9,602 for the parent.
- Right: It entered the deficit figures as negatives (net assets -13,564,855, P&L reserve -25,824,630) and kept creditors positive.
- Right: It set investments to null at group level and filled them in for the parent (2,467 and 2,446), which matches the accounts.
- Right: It finished in one submission with no retries, and every expected field matched.

### tier3-09727592

**Tool calling: passed.** The agent extracted the group and parent company balance sheets for both periods in a single accounts call. Every graded field matched the expected answer, and the run passed with no validation failures. ($0.025, 1 requests, 20 s)
- Right: Kept the group and parent company figures separate, including the parent's own investments (40275 current, 0 prior) and its fixed assets total (41761).
- Right: Signed the deficit items correctly: net assets of -3674263, -1437569 and -1632236, and the negative profit and loss reserves.
- Right: Kept the parent's prior-year net assets positive at 783514, as the accounts show it.
- Right: Gave the prior-year parent investments as 0, as shown, rather than null.
- Right: Finished in one tool call with no retries.
- Mistake: None affected grading. The group creditors_after_one_year (4414189 and 2280471), debtors and provisions were not graded, so they cannot be checked against the expected answer here. Provisions of 5889 appearing in all four periods is unusual and may be a copied value.

### tier4-05840865

**Tool calling: passed.** The agent pulled the group and parent company staff costs and creditors (within and after one year) out of the Drishaun Holdings accounts in a single `accounts` call. The submission passed with no validation failures and matched every expected field. ($0.042, 1 requests, 42 s)
- Right: It finished the extraction in one tool call with no corrections needed.
- Right: It kept the group figures separate from the parent company figures, for example parent amounts owed to group of 1,538,825 against group 0.
- Right: It reported creditor categories the accounts show as nil, such as group amounts owed to group 0/0 and parent bank loans 0/0, as 0 rather than null. This matched the expected answer.
- Right: The current and prior staff cost figures are consistent: wages, social security and pension add up to the stated totals, e.g. 4,716,869 + 448,675 + 205,062 = 5,370,606.
- Right: It captured finance leases due after one year for the parent (28,174 / 39,831) correctly.
- Mistake: The output has some fields the expected answer does not grade, such as group creditors_after_one_year 264,243 and parent other after one year 0/0. These did no harm and the extras are not errors.

### tier4-NI626135

**Tool calling: passed.** The agent extracted staff costs and creditor breakdowns (within and after one year) for the group and the parent company in one accounts call. Every graded figure matched the expected answer, there were no validation failures, and the run passed. ($0.025, 1 requests, 20 s)
- Right: It separated the group figures from the parent company figures correctly for both the staff costs and creditors notes.
- Right: It recorded the after-one-year bank loans as 0 for the current year and 5,836 for the prior year, rather than leaving the field null.
- Right: Its itemised within-one-year creditors add up to the stated totals (15,752,489 for the group and 17,897,307 for the parent), so the first submission was internally consistent.
- Right: It finished in a single submission with no retries.

### tier5-12026946

**Tool calling: passed.** The agent extracted the group and parent company accounts in a single `accounts` call and passed. The group and parent balance sheets, P&L, staff costs and creditor notes all match the expected figures. ($0.045, 1 requests, 40 s)
- Right: Got all the group and parent balance sheet figures right for both years, including the negative net current assets and the negative profit and loss reserve.
- Right: Signed tax correctly: a charge of 72816 for the current year and a credit of -51830 for the prior year.
- Right: Kept the group and parent creditor notes separate, including the parent's amounts owed to group (6050000 / 5550000).
- Right: Finished in a single submission with no failed checks.
- Mistake: The group creditors list includes an amounts_owed_to_group entry of 0/0. That line is not in the expected answer, so it was probably not shown for the group; null or leaving it out would have been more faithful.
- Mistake: Group other_operating_income was given as -420005 for the current year. The expected answer does not score this field, but a negative figure in an income line suggests it may be an other operating expense, mislabelled or signed wrongly.
- Mistake: Parent creditors_after_one_year was set to 0 for the current year rather than null. It was not scored.

### tier5-NI037684

**Tool calling: passed.** The agent pulled the full group and parent-company accounts for John Mulholland Motors Limited in a single `accounts` call. The submission passed and matched every expected field shown. ($0.040, 1 requests, 40 s)
- Right: It kept the group (consolidated) figures separate from the parent company's own figures, including the different creditor note columns (e.g. parent trade creditors prior 2,689,140 vs group 2,698,613).
- Right: It put the parent investments of 300 into fixed_assets, giving 3,599,359.
- Right: Brackets and signs were handled correctly: tax, costs and interest payable were entered as positive amounts.
- Right: It set lines the accounts do not show (intangibles, share premium, creditors after one year) to null.
- Right: It finished in one submission with no retries.
- Mistake: For the parent's prior investments it entered 0 rather than null, although the accounts likely showed no investment line. The grader did not penalise this, but it is debatable.
- Mistake: It filled group.balance_sheet.fixed_assets (4,122,359), a figure the expected answer does not include, so it was harmless.
