---
title: "Claude Opus 5.5 on Pydantic AI Accounting"
description: "Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 90%, code mode 90%; rank 2 of 20."
canonical: https://models.pydantic.dev/models/claude-opus-5.5/accounting_platform/
---

# Claude Opus 5.5 on Pydantic AI Accounting

> Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 90%, code mode 90%; rank 2 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/claude-opus-5.5/accounting_platform/. 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/accounting_platform.md. The model on every Pydantic AI benchmark: https://models.pydantic.dev/models/claude-opus-5.5.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time     |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | -------- |
| Tool calling | 90%   | 9 of 10      | $6.43 | 89       | 515        | 10.2 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed 18 of 20 runs: 9/10 with tool calling and 9/10 in code mode. Both failures were the same case, `large-wrong_invoices-1`, and both were classified as `incomplete_data`. Code mode was far cheaper: $0.63 in total over 53 requests, against $6.43 over 89 requests for tool calling.

#### Where it does well

- **Targeted lookups and edits.** It passed `correction`, `record_payment`, `invoice_total` and `owed_on_invoices` in both modes with 2–5 requests each, at about $0.04–0.05 per run.
  - It resolved names to IDs before acting.
  - It dated writes to today.
  - It applied payments to the oldest due date first.
  - In `record_payment` it noticed a same-day payment (LE-013542) and correctly treated it as a separate payment.
- **Business rules.** In code mode it applied the pricing rules correctly in `tutor_margin` and `wrong_invoices`: billable statuses, charged attendance, split shares, half-up rounding with Decimal, and gross-to-net tax for taxable clients only.
- **Recovering from errors.** In code mode it recovered from the 100-call limit by batching calls in groups of 95, without re-listing data it already had.

#### Mistakes it makes

- **Narrow checks on open-ended audits.** In `large-wrong_invoices-1`:
  - With tools, it looked only for tax charged to non-taxable clients. It reported 3 of the 12 overcharged invoices after examining only 3 invoices.
  - In code mode, it recomputed all 384 invoices and correctly found 9. To save calls, it defaulted unchecked clients to taxable, so it missed exactly the three tax-on-non-taxable cases (INV-06060, INV-06073, INV-06097).
- **Guessed API shapes.** In four code-mode runs it assumed pagination keys `has_more`/`next_page`, which don't exist. This wasted calls in two runs; in the other two it was harmless only because there was a single page.
- **Unbatched first attempts.** In code mode it first tried 384 nested calls at once and hit the 100-call limit. It also hit a suspension limit, which led to the shortcut behind the failure above.
- **Working not shown.** Several tool-calling answers (`tutor_margin` small and large, `owed_on_invoices`) were correct but gave no visible calculation, so they are hard to verify.

#### Tool calling compared with code mode

Accuracy was the same in both modes. The difference is cost on scans over large data sets:

| Case                          | Tools         | Code mode     |
| ----------------------------- | ------------- | ------------- |
| large-duplicate_lines-1       | 29 req, $2.77 | 6 req, $0.047 |
| large-missed_billed-1         | 17 req, $2.12 | 7 req, $0.074 |
| small-wrong_invoices-1        | 12 req, $0.72 | 6 req, $0.081 |
| large-wrong_invoices-1 (fail) | 6 req, $0.38  | 12 req, $0.18 |

- **Tool calling** handled large scans by reading very long outputs by eye. In `missed_billed` it relied on the attendance `invoiced` flag instead of cross-checking each invoice's lines. These runs passed, but the reviewers called the approach costly and fragile.
- **Code mode** checked the data systematically. Its weak points were runtime limits and guessed API keys, not reasoning.
- **Small tasks** cost about the same in both modes.

**Recommendation:** use code mode for any task that scans many records. For audits, ask the model to verify every input it depends on, such as each client's tax status, rather than assuming a default.

## Runs

### small-invoice_total-1

**Tool calling: passed.** The agent made one get_invoice call for INV-00084 and returned the record's 'total' field of 89700 pence, which matches the expected answer. ($0.036, 2 requests, 4 s)
- Right: Used a single get_invoice call, the most direct way to read an invoice total.
- Right: Reported the invoice's own total (89700), which is consistent with net 74752 + tax 14948, and gave it in pence as an integer.

### small-owed_on_invoices-1

**Tool calling: passed.** The agent found client CL-0007, listed their two unpaid invoices (INV-00155 total 39452, INV-00192 total 49315) and their allocations, then subtracted the one unreleased allocation of 3563 on INV-00155. It answered 85204, which is correct. ($0.038, 3 requests, 4 s)
- Right: Used search_clients to resolve Emeka Brown to CL-0007 before querying anything else.
- Right: Filtered list_invoices to status 'unpaid' and fetched list_allocations in the same step, so it needed only three tool calls.
- Right: Applied only allocation 169 (3563, released_on None) to INV-00155: (39452 − 3563) + 49315 = 85204.
- Right: Ignored the allocations on paid invoices (INV-00005, INV-00065, INV-00073, INV-00114).
- Right: Returned an integer in pence, as the handbook requires.
- Mistake: The final answer gave no breakdown of how 85204 was reached, which leaves it hard to check, though the figure is correct.

### large-tutor_margin-3

**Tool calling: passed.** The agent looked up tutor TU-002, listed Chen Mensah's October 2026 lessons and fetched attendance for all 67 of them. It checked three clients' taxable status and answered 120741 pence, which matches the expected answer. ($0.18, 5 requests, 34 s)
- Right: Found tutor TU-002 and pulled all October lessons with a single date-ranged list_lessons call (2026-10-01 to 2026-10-31, both ends included).
- Right: Fetched attendance for every lesson in one batched list_attendance call.
- Right: Looked up is_taxable for clients CL-0097, CL-0065 and CL-0269, presumably those with gross-priced lessons, where a non-taxable client's net equals the full cost.
- Right: The final figure of 120741 is correct.
- Mistake: No calculation steps appear in the transcript, so there is no record of how billable status, split shares, rounding and gross-to-net conversion were applied. The agent went straight from the tool results to the answer, which is hard to check.

### small-tutor_margin-3

**Tool calling: passed.** The agent found tutor Kai Iyer, listed his 37 October 2026 lessons and their attendance, and checked the tax status of the three clients with gross-priced lessons. It answered 65045 pence, which matches the expected answer. ($0.10, 5 requests, 21 s)
- Right: Called get_settings to get the 20% tax rate, which is needed to net down gross-priced lessons.
- Right: Pulled every Kai Iyer lesson dated 2026-10-01 to 2026-10-31 and fetched attendance for all 37 IDs in one call.
- Right: Saw that only gross lessons need tax backed out of the charge, so it checked is_taxable only for the clients on gross lessons (CL-0037, CL-0002, CL-0008). It found CL-0037 non-taxable, so those lessons count at full cost as net.
- Right: Counted lessons by the date they took place regardless of invoiced status, and treated lessons whose students were marked missed (e.g. LS-001419, LS-001445) according to the billing rules.
- Right: Gave the integer pence figure 65045, which is correct.
- Mistake: The final calculation is not shown in the transcript: there is no code or written working between the get_client calls and the answer. The per-line rounding was therefore done unseen, which makes the result hard to check and the run fragile.

### large-duplicate_lines-1

**Tool calling: passed.** The agent listed all October 2026 invoices across 4 pages, then called get_invoice on each non-void one to look for duplicate (lesson_id, student_id) lines. It answered INV-06060, INV-06073 and INV-06097, which matches the expected answer. ($2.77, 29 requests, 3.1 min)
- Right: Paged through all 4 pages of list_invoices for sent dates 2026-10-01 to 2026-10-31, including the later invoices sent on 2026-10-03 through 2026-10-10.
- Right: Skipped void invoices: no get_invoice calls appear for INV-05811 or INV-06144, and INV-06069 is listed as void.
- Right: Checked the line items of every invoice so duplicate lesson/student pairs could be found, and returned exactly the three matching IDs.
- Mistake: The agent made several hundred sequential get_invoice calls in batches of 10–15 with no code, so finding duplicates relied on manual scanning of very long outputs. This is costly and error-prone, though here the answer was correct.

### large-missed_billed-1

**Tool calling: passed.** The agent listed October 2026 invoices, pulled all September lessons and their attendance in batches, and picked out attendance rows marked 'missed' but flagged invoiced=True (e.g. LS-044224/ST-0088). It confirmed three invoices with get_invoice and returned INV-05846, INV-05821 and INV-06080, which matches the expected set. ($2.12, 17 requests, 3.3 min)
- Right: Worked out that October's invoices cover September lessons and pulled September lessons and attendance in full.
- Right: Used the 'invoiced' flag on attendance rows to find students marked 'missed' who were still invoiced (e.g. LS-044224 ST-0088 'missed', invoiced True).
- Right: Checked each candidate with get_invoice, confirming the line for the missed student (e.g. INV-05821 has a line for LS-044224/ST-0088, INV-06080 for LS-042732/ST-0491).
- Right: Kept void invoices out, as the question asked.
- Mistake: Fetching attendance for every September lesson took about 30 batches of list_attendance calls. This worked but was costly, and the agent did not visibly check whether a more targeted filter was available.
- Mistake: The list_invoices pagination was handled awkwardly: it requested page 4, then switched to a sent_from of 2026-10-02, without clearly confirming every page of 1 October invoices had been read.
- Mistake: The agent relied on the attendance 'invoiced' flag to find candidates rather than cross-checking every October invoice's lines. Invoices whose candidate rows were not flagged could have been missed.

### large-wrong_invoices-1

**Tool calling: failed.** The agent listed the October 2026 invoices and fetched one month of September lessons. From the invoice headers it spotted three invoices to non-taxable clients that carried tax, and reported only those three (INV-05851, INV-06016, INV-06105). It missed the other nine overcharged invoices the expected answer contains, so the run failed. ($0.38, 6 requests, 58 s)
- Right: Retrieved the settings and paged through all four pages of October invoices.
- Right: Correctly found three non-taxable clients charged tax on a line, confirmed it with get_invoice and get_client, and gave the right overcharge amounts (1050, 1150, 1875).
- Mistake: It only looked for one kind of error: tax charged to non-taxable clients, which it could spot from the invoice headers. It never recomputed line amounts from lesson charge_type, rate, duration, split and attendance. That would have caught errors such as charging a 'missed' student, wrong split shares, or wrong hourly duration in invoices like INV-05821, INV-05846 and INV-06097.
- Mistake: It called list_lessons for September but only read the first page. It never fetched attendance or checked a single lesson's cost against an invoice line, so the lesson data went unused.
- Mistake: It did not check for lines on cancelled or planned (non-billable) lessons, or for lessons invoiced twice. Overcharges like INV-05846 (11700) and INV-06073 (4500) look like whole-line errors of this kind.
- Mistake: It answered after checking only 3 invoices, with no systematic check of the other roughly 340.

### small-wrong_invoices-1

**Tool calling: passed.** The agent listed October 2026 invoices, opened every one of the 37 invoices with get_invoice, pulled all September lessons and their attendance, and checked CL-0014's tax status. It found four overcharged invoices (INV-00158 with a duplicate line, INV-00162 charging tax to a non-taxable client, INV-00172 with an inflated line, INV-00176 with an extra line). The answer matched the expected one exactly. ($0.72, 12 requests, 81 s)
- Right: Opened every October invoice to see its lines instead of relying on the header totals.
- Right: Spotted the duplicated LS-001226 line in INV-00158 (4050).
- Right: Called get_client on CL-0014, confirmed is_taxable false, and so caught the 863 tax line on INV-00162.
- Right: Pulled the full set of September lessons and attendance to check charge rates and attendance against the invoice lines (e.g. the 6500 vs 6000 line in INV-00172 and the INV-00176 overcharge).
- Right: The final answer gives ids and pence as integers in the right shape.
- Mistake: No real mistakes. Rather than fetching every invoice and paging through all lessons, the agent could have saved effort by first checking each header's net plus tax against its total.
- Mistake: The transcript shows no explicit calculation for INV-00176's 6000 overcharge (e.g. which lesson was billed but not attended). The reasoning is not shown, but the result was correct.
- Mistake: It did not check client tax status for the other zero-tax invoices (CL-0019, CL-0029, CL-0030, CL-0037, CL-0039). That could have hidden undercharges, though the question only asked about overcharges.

### large-correction-2

**Tool calling: passed.** The agent looked up the client and invoice INV-06372 and checked attendance. It then marked Yara Baker as missed on LS-045235, voided INV-06372 dated today and reissued a 17100 invoice for the three remaining lessons. The resulting changes matched the expected answer exactly and the run passed. ($0.042, 5 requests, 13 s)
- Right: Fetched INV-06372 first and found the 7 October lesson as LS-045235, the line for student ST-0332.
- Right: Checked attendance before changing anything and confirmed LS-045914 is missed_chargeable, so that lesson stays billable and belongs on the new invoice.
- Right: Called update_attendance to set LS-045235 to missed, called void_invoice dated 2026-11-13, then called create_invoice dated 2026-11-13 with only the three remaining lines.
- Right: The new invoice (14250 net + 2850 tax = 17100) was paid from the released credit, and the summary correctly says 5700 credit remains.
- Right: Used few calls and ran independent lookups and updates in parallel.
- Mistake: Minor: it called search_clients with the student's name, 'Yara Baker', and got back the client Freya Baker. This was harmless because the invoice already gave the client ID CL-0234.
- Mistake: The summary's claim that 5700 credit is left over was not checked against the ledger. The figure is correct (22800 − 17100), but it was inferred, not read from the records.

### large-record_payment-1

**Tool calling: passed.** The agent found Jane Kelly (CL-0294) and pulled her unpaid invoices and allocations. It recorded a 50126p payment dated 2026-11-13, applying 37626p to INV-02840 and 12500p to INV-03247, oldest due date first. This matched the expected changes and the run passed. ($0.043, 5 requests, 15 s)
- Right: Used search_clients to resolve the name to CL-0294 before acting.
- Right: Called list_invoices (status unpaid) and list_allocations together to work out what was still owed on each invoice.
- Right: Applied the money oldest due date first: 37626p cleared the rest of INV-02840 (58778 total), and the remaining 12500p went to INV-03247 (25004 total, leaving 12504p).
- Right: Checked recent payment ledger entries for a duplicate and found LE-013542 (56252p, same day, different amount). It correctly treated the new payment as separate and mentioned this in the reply.
- Right: Dated the payment today (2026-11-13), as the handbook requires.
- Right: The summary was short and gave the payment ID, how it was split and what remains on the part-paid invoice.
- Mistake: No real mistakes. The allocation figures (21152p already paid on INV-02840) came from the truncated part of the list_allocations output, so the reviewer cannot fully verify the arithmetic. They match the expected answer, though.
