---
title: "Muse Spark 1.3 on Pydantic AI - Structured output"
description: "Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 30 of 44."
canonical: https://pydantic.dev/models/list/muse-spark-1.3/structured_output/
---

# Muse Spark 1.3 on Pydantic AI - Structured output

> Extracting UK company accounts into a nested Pydantic model, checked against the filer's tags. Tool calling 80%; rank 30 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/muse-spark-1.3/structured_output/. Index for agents: https://pydantic.dev/models/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://pydantic.dev/models/api/select` with a JSON body such as `{"description": "what the agent does"}`. It returns up to five ranked models with reasons. Format: https://pydantic.dev/models/select.md
- Search models by name: `GET https://pydantic.dev/models/api/search?query=<text>`
- List, filter and sort models: `GET https://pydantic.dev/models/api/models`, for example `?weights=open&max_price=2&sort=efficiency`
- One model in full: `GET https://pydantic.dev/models/api/models/<slug>`
- Any other question about the models: `GET https://pydantic.dev/models/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://pydantic.dev/models/mcp`. More: https://pydantic.dev/models/usage.md

About the benchmark: https://pydantic.dev/models/benchmarks/structured_output.md. The model on every Pydantic AI benchmark: https://pydantic.dev/models/list/muse-spark-1.3/pydantic_ai.md

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

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

Muse Spark 1.3 passed 8 of 10 cases, all in tool-calling mode. Every case took exactly one request: one `accounts` tool call with no retries. Each case cost $0.03–0.06, about $0.42 in total.

#### Where it does well

- **Scaling and signs.** It multiplied £000 accounts by 1,000 correctly in every affected case (07054261, 11022760, SC121467). Brackets came out right every time: deficits, net liabilities and prior tax credits were negative (`tax` -138000, -571000, -51830), while costs and creditors were positive.
- **Group against parent.** In all four cases that ask for both (tier3 ×2, tier5 ×2), it kept the consolidated and parent figures apart. That held even where they differ by small amounts, such as parent prior intangibles 14896091 against group 14896135, or parent other creditors 102990 against group 103090.
- **The larger extractions.** Both tier5 cases passed: company details, directors, both entities' statements, staff costs and creditor breakdowns in one call.

#### Mistakes it makes

Both failures break the handbook's rules on dashes and on computed figures. Neither is a misreading of a number.

- **A dash read as 'not shown', or replaced with an invented value (1 case, 3 fields).** In TaskUs (11022760), the balance sheet shows `Called up share capital | - | -`, but the model returned `100` for both years. It also returned `null` for prior `other_operating_income`, which the P&L shows as `-`. Both should have been 0.
- **Splitting a line using narrative text (1 case).** In Drishaun (05840865), the creditors table shows `Other creditors 1,278,154 / 820,961`. A sentence below says director loans of £48,817 are included in it. The model created an `amounts_owed_to_directors` row and returned `other` as 1229337 / 795554, a figure the table does not show. In the same answer it left out the parent's bank loans row, which the note shows as `-`/`-` (expected 0/0).

Because the model never retried, it never saw the checker's feedback. With one call per case, its first reading of the accounts was its final answer.

## Runs

### tier1-07054261

**Tool calling: passed.** Extracted the single-company balance sheet and P&L in £000, multiplied by 1,000, in one `accounts` call. Passed. ($0.045, 1 requests, 27 s)
- Right: Scaled every £000 figure correctly, e.g. `creditors_within_one_year` 20446000
- Right: Signs correct on the deficits (`net_current_assets` -8967000, `profit_and_loss_reserve` -8457000) and on the prior tax credit `tax` -138000
- Right: Done in 1 request

### tier1-11022760

**Tool calling: failed.** Returned TaskUs figures in one `accounts` call. Every scaled balance sheet and P&L figure was right, but it put share capital at 100 where the accounts show '-', and left a prior P&L dash as null. Failed. ($0.036, 1 requests, 85 s)
- Right: All £000 balance sheet figures scaled and signed correctly, including `total_assets_less_current_liabilities` -19925000 and prior 26107000
- Right: Current P&L right, including `other_operating_income` 7592000 and `tax` 312000
- Mistake: In its only tool call, it set `called_up_share_capital` to 100 for both years. The balance sheet shows `Called up share capital | 20 | - | -` in £'000, so the answer is 0. The 100 is not a figure on the face of the statement
- Mistake: Set `prior_profit_and_loss.other_operating_income` to null. The P&L shows `Other operating income | 7,592 | -`, so the line exists and the expected value is 0

### tier2-11600506

**Tool calling: passed.** Group balance sheet and P&L in whole pounds, done in one call. Passed. ($0.028, 1 requests, 9 s)
- Right: Negative net assets and reserves signed correctly (-2896388, -2896788)
- Right: Kept `total_assets_less_current_liabilities` -857995 separate from `net_assets`

### tier2-SC121467

**Tool calling: passed.** Group figures in £000, scaled correctly, in one call. Passed. ($0.036, 1 requests, 15 s)
- Right: Prior-year loss and tax credit signed correctly (`profit_before_tax` -1678000, `tax` -571000)
- Right: Kept distribution costs separate from administrative expenses

### tier3-05959188

**Tool calling: passed.** Group and parent balance sheets for both years in one call. Passed. ($0.037, 1 requests, 10 s)
- Right: Took group and parent figures from separate statements, e.g. parent `creditors_within_one_year` 3852856 against group 2483825
- Right: Took parent prior intangibles as 14896091, which differs slightly from the group's 14896135

### tier3-09727592

**Tool calling: passed.** Group and parent balance sheets in one call. Passed. ($0.037, 1 requests, 20 s)
- Right: Signed the parent's swing from prior net assets 783514 to current -1632236 correctly
- Right: Share capital 252 and 250 read correctly in both years

### tier4-05840865

**Tool calling: failed.** Staff costs and creditors notes for group and parent, in one call. It split the group's 'Other creditors' line using a narrative sentence and left out the parent's bank loans row. Failed. ($0.057, 1 requests, 48 s)
- Right: Staff costs for group and parent were all right
- Right: Every other group and parent creditor line was right, including the after-one-year finance leases
- Mistake: Within one year, the note shows `Other creditors | 1,278,154 | 820,961`. Below it, a sentence says director loans of £48,817 (2024: £25,407) are included in that line. The model added an `amounts_owed_to_directors` row of 48817 and reduced `other` to 1229337 / 795554. That computes figures the table does not show. It should have returned `other` as 1278154 / 820961
- Mistake: For the parent company, it left out the `bank_loans_and_overdrafts` within-one-year row. The note shows '-' for both years, so the expected value is 0/0

### tier4-NI626135

**Tool calling: passed.** Staff costs and creditors for group and parent in one call. Passed. ($0.037, 1 requests, 17 s)
- Right: Returned zero-current/non-zero-prior bank loans after one year as 0 / 5836 for both group and parent
- Right: Matched all creditor categories, including `amounts_owed_to_group`

### tier5-12026946

**Tool calling: passed.** The full extraction (company details, directors, group and parent statements, staff costs, creditors), done in one call. Passed. ($0.054, 1 requests, 37 s)
- Right: Directors listed with honorifics, which the checker accepted
- Right: Parent reserves (-4529857) kept apart from group reserves (-43056856)
- Right: Prior tax credit `tax` -51830 signed correctly

### tier5-NI037684

**Tool calling: passed.** Full extraction for a medium-sized group in one call. Passed. ($0.048, 1 requests, 36 s)
- Right: `accounts_type` medium and `consolidated` true were right
- Right: Kept director loans as `amounts_owed_to_directors` 18372, which here is its own line in the note
- Right: Parent creditor figures that differ slightly from the group's (e.g. `other` prior 102990 against 103090) were right
