---
title: "Grok 4.7 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/grok-4.7/companies_house/
---

# Grok 4.7 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/grok-4.7/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/grok-4.7.md

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

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

`gateway/openrouter:x-ai/grok-4.7` passed all 10 cases across five tiers. Every conversation contains one `accounts` submission followed by `Final result processed.`, with no correction rounds. Reported cost totals $0.7813, averaging $0.07813 per case. These runs test extraction from accounts text already supplied in the prompt, not document retrieval.

#### Where it does well

The model handled £000 scaling in all three applicable cases: Cube Logic, TASKUS and Franke. It consistently distinguished positive expenses and liabilities from negative losses, reserves and tax credits.

All six cases requesting both group and parent disclosures passed. Tribe demonstrates careful separation of nearly identical comparative figures; Diamond Trucks demonstrates accurate reading of four-column notes and distinguishing lease liabilities from future minimum payments. Both tier-5 cases passed with metadata, directors, statements and creditor breakdowns.

It also preserved reported totals when the output schema omitted contributing lines: Franke’s separate bad-debt provision and Cambium’s associate losses did not cause it to replace the stated profit figures. No unnecessary retrieval calls or retries were observed.

#### Mistakes it makes

Passing scores conceal two output issues. Cube Logic’s `balance_sheet.debtors: 9792000` combines separately disclosed amounts, violating the instruction against computing undisclosed figures; that field was not among the supplied expected checks. This contrasts with John Mulholland Motors, where it correctly left an unprinted group fixed-assets total `null`.

Drishaun omits two explicitly displayed zero creditor rows that appear in the expected data, yet still passes. Engineers should therefore distinguish benchmark success from complete transcription fidelity.

There are no failed runs, provider errors or validation-recovery sequences here, so this sample provides no evidence about recovery after an incorrect submission.

## Runs

### tier1-07054261

**Tool calling: passed.** Submitted Cube Logic’s company details and both periods through one `accounts` call, which passed. However, the output includes an undisclosed calculated debtor total. ($0.077, 1 requests, 50 s)
- Right: Converted £000 figures correctly, including turnover `16382000` and creditors `20446000`.
- Right: Preserved restated comparative figures and correctly returned prior tax credit `-138000` and net liabilities `-6319000`.
- Right: Completed without retries or unnecessary retrieval calls; accounts were supplied in the prompt.
- Mistake: In the sole `accounts` call, set `balance_sheet.debtors` to `9792000`, equivalent to `(134 + 9658) * 1000`. The statements and note 15 show the components separately, without this total. Under the no-calculation rule, the undisclosed total should have been `null`. This field was absent from the supplied expected checks.

### tier1-11022760

**Tool calling: passed.** Extracted TASKUS’s company details, balance sheets and profit-and-loss figures in one successful `accounts` call. ($0.072, 1 requests, 66 s)
- Right: Scaled £000 correctly, including investments `16705000` and long-term creditors `104000`, versus comparative `46695000`.
- Right: Returned bracketed expenses as positive amounts, including interest payable `1307000`, while preserving prior loss after tax `-1862000`.
- Right: Used `0` for displayed share-capital dashes and `null` for absent share premium.
- Right: No retries or observable wasted tool calls.

### tier2-11600506

**Tool calling: passed.** Returned Furat’s consolidated balance sheets and profit-and-loss accounts for both periods through one accepted `accounts` call. ($0.049, 1 requests, 18 s)
- Right: Used the disclosed total intangible assets `2828132`, rather than goodwill alone `2819897`.
- Right: Kept consolidated net assets `-2896388` separate from the parent’s `400`.
- Right: Preserved whole-pound precision, including interest receivable `91`, provisions `346932` and profit after tax `520795`.
- Right: No retries or observable waste.

### tier2-SC121467

**Tool calling: passed.** Submitted Franke’s consolidated figures in pounds with one successful `accounts` call. ($0.11, 1 requests, 2.3 min)
- Right: Converted £000 amounts and correctly signed prior tax credit `-571000` and prior operating loss `-1818000`.
- Right: Returned profit after tax `140000`, rather than total comprehensive loss `-120000`.
- Right: Reported debtors `6796000` and `10187000`, both explicitly disclosed as totals in note 17 despite separate maturity lines on the balance sheet.
- Right: Preserved the reported operating result despite a separate prior bad-debt provision outside the available expense fields; no retries.

### tier3-05959188

**Tool calling: passed.** Extracted Tribe Payments’ four requested balance sheets in one accepted `accounts` call. ($0.062, 1 requests, 20 s)
- Right: Distinguished closely matching prior intangible assets: group `14896135`, parent `14896091`.
- Right: Kept current tangible assets separate: group `379315`, parent `9602`.
- Right: Preserved restated comparatives and negative equity, including group `-13564855` and parent `-15485891`.
- Right: Used reported equity totals without forcing them to equal the subset of reserve fields in the output; no retries.

### tier3-09727592

**Tool calling: passed.** Returned Tyk’s group and parent balance sheets for January 2026 and the comparative period in one successful `accounts` call. ($0.061, 1 requests, 35 s)
- Right: Separated group cash `2720339` from parent cash `2017699`.
- Right: Preserved the parent’s change from comparative net assets `783514` to current net liabilities `-1632236`.
- Right: Returned provisions as positive `5889`, despite bracketed presentation, and comparative parent investments as `0`.
- Right: No retries or observable wasted calls.

### tier4-05840865

**Tool calling: passed.** Extracted Drishaun’s staff costs and creditor notes in one passing `accounts` call. The submission omitted some explicitly displayed zero creditor entries. ($0.069, 1 requests, 54 s)
- Right: Separated group staff costs `5370606` from parent staff costs `174680`, preserving both comparative columns.
- Right: Correctly classified finance leases by maturity, including parent long-term `28174` and comparative `39831`.
- Right: Returned group current creditors `4229724` and parent current creditors `1808163` without retries.
- Mistake: In the sole `accounts` call, omitted group `amounts_owed_to_group` and parent `bank_loans_and_overdrafts` within one year, although the source displays dashes for both periods and the expected data specifies `0`. Include these rows with `amount: 0` and `prior_amount: 0` to preserve the disclosed entries. The benchmark nevertheless passed.

### tier4-NI626135

**Tool calling: passed.** Returned Diamond Trucks’ staff costs and creditors for both entities in one accepted `accounts` call. ($0.065, 1 requests, 37 s)
- Right: Correctly read four-column notes: group wages `3830147`, parent wages `1726390`, with their respective comparatives.
- Right: Separated group amounts owed to group undertakings `3668476` from parent `10067741`.
- Right: Included long-term bank borrowing rows with current `0` and prior `5836` for both entities.
- Right: Used finance-lease liabilities `445421` and `689258`, rather than the different future-minimum-payment figures `445452` and `689227`; no retries.

### tier5-12026946

**Tool calling: passed.** Submitted Cambium’s company metadata, four directors, group accounts and parent disclosures in one successful `accounts` call. ($0.12, 1 requests, 2.1 min)
- Right: Distinguished group net assets `1427969` from parent `39954968` and preserved both comparative balance sheets.
- Right: Correctly returned net current liabilities as `-14613956`, although the source prints the amount without brackets.
- Right: Preserved reported loss before tax `-4801087`, which includes associate losses outside the output’s standard interest fields.
- Right: Returned prior tax credit `-51830`, staff costs and creditor maturities accurately; no retries.

### tier5-NI037684

**Tool calling: passed.** Extracted John Mulholland Motors’ medium-company metadata, directors and group/parent disclosures in one accepted `accounts` call. ($0.091, 1 requests, 83 s)
- Right: Correctly identified `accounts_type: "medium"`, consolidation and both named directors.
- Right: Separated group stocks `7357548` from parent `5082704`, and group net assets `12281086` from parent `12392803`.
- Right: Left group `fixed_assets` as `null` because no separate total is printed, while returning the parent’s disclosed total `3599359`.
- Right: Preserved creditor categories, including directors’ balances `18372` and prior `5938`; no retries.
