---
title: "GPT-6 Luna on Pydantic AI Accounting"
description: "Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 40%, code mode 80%; rank 20 of 20."
canonical: https://models.pydantic.dev/models/gpt-6-luna/accounting_platform/
---

# GPT-6 Luna on Pydantic AI Accounting

> Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 40%, code mode 80%; rank 20 of 20.
>
> Markdown copy of https://models.pydantic.dev/models/gpt-6-luna/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/gpt-6-luna.md

| Mode         | Score | Tasks passed | Cost   | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ------ | -------- | ---------- | ------- |
| Tool calling | 40%   | 4 of 10      | $0.043 | 49       | 180        | 3.8 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed 12 of 20 runs: 4/10 with tool calling and 8/10 in code mode. It handles short lookups and targeted writes reliably. It struggles with audits across hundreds of invoices and with multi-rule margin calculations. Total cost was $0.0428 for tools (49 requests) and $0.0371 for code mode (91 requests).

#### Where it does well

- **Lookups and writes:** It passed all 8 runs of invoice_total, owed_on_invoices, record_payment and correction across both modes, in 2–5 requests each.
- **Handbook rules on writes:** It did the attendance update, then the void, then the reissue in order, all dated 2026-11-13. It allocated 50126p oldest-due first, using only the 37626p still owed on INV-02840.
- **Balance arithmetic:** It subtracted only unreleased allocations on unpaid invoices (85204).
- **Full scans in code mode:** It fetched all 384 non-void October invoices, worked around the 100-call sandbox limit by batching, and matched attendance on the (lesson_id, student_id) pair.

#### Mistakes it makes

- **Stopping early on large scans (tools):** It answered after opening 1 invoice (duplicate_lines), 11 invoices (missed_billed) or 4 invoices (wrong_invoices) out of about 400. Two of these runs submitted empty lists.
- **Incomplete inputs:** In large tutor_margin (tools) it checked taxability for only 16 clients, and its answer was 2325 short.
- **Missed rules:** In small tutor_margin (tools) it omitted tutor pay for missed-student lessons and was 11500 too high. In large wrong_invoices (code mode) it saw 3108 lines but only 3105 unique pairs, never followed this up, and missed 3 duplicate-billed invoices.
- **Code bugs:** It multiplied one-off rates by 60 twice. In small wrong_invoices it caught and fixed the bug. In large tutor_margin it submitted 5489741 without a sanity check (expected 120741).
- **Dropping a confirmed finding:** In small wrong_invoices (tools) it verified a 600 overcharge on INV-00172 but left it out of the answer.
- **Unverified assumptions:** It hard-coded the 20% tax rate, did not check for further pages of list_lessons, and relied on truncated allocation lists. None of these caused a failure.

#### Tool calling compared with code mode

Code mode was clearly stronger on bulk work. It passed duplicate_lines, missed_billed, small wrong_invoices and small tutor_margin, all of which tool calling failed. In large wrong_invoices, code mode found 9 of 12 invoices; tool calling found 3.

Code mode also cost less overall ($0.0371 vs $0.0428). The exception is large audits, where it used more requests (16–26 vs 4–7), partly from hitting the call limit and retrying.

Tool calling never failed through a code bug, but it tended to sample instead of enumerate. Code mode's failures came from logic errors (the ×60 factor, the duplicate-line rule) rather than incomplete data.

For tasks that scan many records, prefer code mode, and validate its outputs with sanity checks.

## Runs

### small-invoice_total-1

**Tool calling: passed.** The agent made one get_invoice call for INV-00084, read the stored total of 89700 pence, and returned it. This matches the expected answer. ($0.0005, 2 requests, 2 s)
- Right: It chose the right single tool call, get_invoice, and took the invoice's recorded 'total' field (89700) as the answer without making any extra calls.
- Right: It answered in integer pence as the handbook requires.
- Mistake: It did not check that 89700 equals the sum of the line totals. The stored total was very likely right, and the visible figures are consistent (net 74752 + tax 14948 = 89700), so this barely matters.

### small-owed_on_invoices-1

**Tool calling: passed.** The agent found client CL-0007, listed the two unpaid invoices (39452 and 49315) and subtracted the one unreleased allocation on an unpaid invoice (3563 on INV-00155). Its answer of 85204 matches the expected answer. ($0.0006, 4 requests, 5 s)
- Right: Filtered invoices by status 'unpaid' and checked that only one page of results came back (pages: 1, total: 2).
- Right: Pulled the client's allocations and used only the one tied to an unpaid invoice (id 169, 3563 on INV-00155, released_on None). It ignored allocations on paid invoices.
- Right: Arithmetic is correct: 39452 + 49315 - 3563 = 85204.
- Right: Answered in three tool calls with no wasted steps.

### large-tutor_margin-3

**Tool calling: failed.** The agent pulled Chen Mensah's 75 October lessons, their attendance and the settings, then looked up only 16 of the clients involved and submitted a margin of 118416 without showing any working; the expected answer was 120741, 2325 more. ($0.0037, 5 requests, 28 s)
- Right: Found the tutor (TU-002) correctly and filtered lessons to 2026-10-01 through 2026-10-31.
- Right: Fetched attendance for all 75 lesson IDs in a single call and got the 20% tax rate from get_settings.
- Right: Understood that client taxability matters and checked `is_taxable` for some clients (e.g. CL-0113 and CL-0097 are non-taxable).
- Mistake: Only 16 clients were looked up (CL-0126 through CL-0377), all taken from the visible start of the attendance result. The attendance across 75 lessons ran on for about 9000 more characters with many more clients whose `is_taxable` flags were never checked.
- Mistake: The shortfall of 2325 is exactly the 20% gross-inclusive tax on a 13950 charge (13950 × 0.2 / 1.2). This suggests a gross-priced lesson for an unchecked non-taxable client had tax wrongly taken off, when the line's net should have been the full cost. The agent should have fetched every client appearing in a charged line of a gross lesson.
- Mistake: There is no sign the agent checked whether list_lessons had a page 2, though the visible result does not settle this.
- Mistake: No working or per-lesson breakdown appears before final_result, so the figure could not be checked.

### small-tutor_margin-3

**Tool calling: failed.** The agent fetched Kai Iyer's 39 October lessons, their attendance, the settings and the clients' taxable flags, then submitted a margin of 76545 with no visible calculation. The expected answer was 65045, so it was 11500 pence too high. ($0.0022, 5 requests, 20 s)
- Right: Found the tutor (TU-001) and listed lessons for 2026-10-01 to 2026-10-31.
- Right: Fetched attendance for every lesson ID returned.
- Right: Got the settings (20% tax) and checked `is_taxable` for each client, which matters for the net figure on gross-priced lessons.
- Right: Counted lessons by the date they took place, whether or not they were invoiced.
- Mistake: The agent did all the arithmetic over 39 lessons in its head, with no worked figures, then called final_result with 76545. The total is 11500 pence too high and there is no audit trail to show where.
- Mistake: Several billable lessons had their only student marked `missed`, for example LS-001419, LS-001445 and LS-001463. The client is charged nothing for these, but the tutor is still paid for each billable lesson. The excess of 11500 fits leaving out that tutor pay, though the transcript does not show which error was made.
- Mistake: It is possible the agent did not strip tax out of the gross lessons (for example LS-001398 and LS-001408) for taxable clients. Margin must use net-of-tax charges.
- Mistake: It did not check whether list_lessons had a second page; the result was truncated in the transcript.

### large-duplicate_lines-1

**Tool calling: failed.** The agent paged through the October 2026 invoices and opened only one of about 330 (INV-05761). It then answered with an empty list, so it missed INV-06060, INV-06073 and INV-06097. ($0.0047, 4 requests, 24 s)
- Right: It used list_invoices with the right date filter (2026-10-01 to 2026-10-31) and read all four pages.
- Right: It saw that only get_invoice shows the lines, so finding duplicate student-and-lesson lines means opening each invoice.
- Mistake: After one get_invoice call (INV-05761), it called final_result with {"ids":[]} and never checked the other ~330 non-void October invoices for lines that repeat the same lesson_id and student_id.
- Mistake: It treated one clean invoice as if no invoice had duplicates. INV-06060, INV-06073 and INV-06097 were never opened.
- Mistake: It should have opened every non-void October invoice (skipping void ones such as INV-06069) and flagged any that has more than one line for the same lesson and student.

### large-missed_billed-1

**Tool calling: failed.** The agent listed the October 2026 invoices across four pages. It then opened only INV-05761 and the ten late invoices INV-06145 to INV-06154, checked attendance for their lessons, and submitted an empty list. The expected answer was INV-05821, INV-05846 and INV-06080. ($0.012, 7 requests, 41 s)
- Right: It paged through all four pages of list_invoices for sent dates 2026-10-01 to 2026-10-31.
- Right: It correctly saw that each invoice line has to be matched against list_attendance by lesson_id and student_id to find students marked 'missed'.
- Right: It batched lesson IDs into list_attendance calls, which kept the number of requests down.
- Mistake: After listing roughly 400 invoices, it called get_invoice on only 11 of them: INV-05761 and INV-06145–INV-06154. None of the three target invoices (INV-05821, INV-05846, INV-06080) was ever opened.
- Mistake: It fetched four pages of September lessons with list_lessons and never used them. Lesson records carry no attendance, so these calls were wasted.
- Mistake: It called final_result with an empty list after checking only a small sample, as if that settled the question. It should have opened every non-void October invoice, run list_attendance on all their line lessons, and flagged any line whose student was marked 'missed'.
- Mistake: It did not explicitly filter out void invoices. INV-06069 is void, for example, though that made no difference here because the sample was so small.

### large-wrong_invoices-1

**Tool calling: failed.** The agent listed October 2026 invoices, picked out three where a non-taxable client was charged tax (INV-05851, INV-06016, INV-06105), and reported those. It missed nine other overcharged invoices in the expected answer, which needed the invoice lines checked against lesson records (rates, durations, attendance, split charges). ($0.0049, 5 requests, 27 s)
- Right: Paged through all four pages of list_invoices for the October sent range and fetched the settings (20% tax).
- Right: Spotted invoices whose small tax figure didn't fit their net amount, fetched them, and confirmed with get_client that the clients were not taxable. The three amounts (1050, 1150, 1875) match the expected answer.
- Right: Checked INV-06148 as well, which it rightly did not report.
- Mistake: It only looked for one kind of error: tax charged to non-taxable clients, which shows up in the invoice header totals. It never checked line amounts against the actual lessons (list/get lesson, attendance, charge type, rate, duration), so it missed overcharges such as INV-05791 (600), INV-05821 (4875), INV-05846 (11700), INV-05877 (750), INV-06017 (500), INV-06060 (3563), INV-06073 (4500), INV-06080 (4050) and INV-06097 (9900).
- Mistake: After fetching only 4 invoices out of about 400, it called final_result. It did not check each line of every non-void October invoice, which means recomputing each lesson's cost from the lesson records (status, attendance, charge type and rate, duration, split share, tax treatment), comparing that with the billed line total, and summing the excess per invoice.
- Mistake: INV-06148 has Maths lines at 1688 and later at 2250, a sign of possible rate or split discrepancies, but the agent did not look into it any further.

### small-wrong_invoices-1

**Tool calling: failed.** The agent pulled all 37 October invoices, every client's tax status and September attendance, and correctly found INV-00158 (duplicate line, 4050), INV-00162 (tax on a non-taxable client, 863) and INV-00176 (a missed lesson billed, 6000). It left out INV-00172 even though it had confirmed that invoice's error, so the run failed. ($0.011, 7 requests, 60 s)
- Right: Listed the October invoices and fetched every one with get_invoice, so no invoice was skipped.
- Right: Spotted LS-001226 billed twice on INV-00158 and gave the right overcharge of 4050.
- Right: Checked is_taxable for every client and caught the 863 tax line on INV-00162 for non-taxable CL-0014.
- Right: Used list_attendance to show LS-001346 was 'missed' yet billed 6000 on INV-00176.
- Right: Fetched LS-001295 itself to check the odd 6500-net line on INV-00172.
- Mistake: In the last get_lessons/list_attendance check, LS-001295 came back as hourly, charge_rate 6000, one hour (14:30 to 15:30), net, attended. So the correct line is 6000 net + 1200 tax = 7200, but INV-00172 billed 6500 + 1300 = 7800. That is a 600 overcharge, yet the final_result call left INV-00172 out.
- Mistake: It checked only a few suspect lines by eye instead of systematically recalculating every line from the lesson records, which is how a confirmed error was dropped from the answer.
- Mistake: Wasteful work: it fetched CL-0002 and CL-0010 twice, and pulled attendance for all of LS-001057 to LS-001371 without then recomputing every line's cost.

### large-correction-2

**Tool calling: passed.** The agent marked ST-0332 (Yara Baker) as missed in lesson LS-045235, voided INV-06372 dated today, and created a replacement invoice for the other three October lessons. The new invoice came to 17,100p and was paid automatically from the released credit. The resulting state matched the expected changes and the run passed. ($0.0018, 5 requests, 11 s)
- Right: Ran search_clients, get_invoice and list_lessons in parallel at the start. Together they gave the lesson ID LS-045235, the student ST-0332 and the invoice lines.
- Right: Did the three changes in the order the handbook implies: update_attendance to 'missed' first, then void_invoice dated 2026-11-13, then create_invoice dated 2026-11-13.
- Right: Left the 7 October lesson out of the reissued invoice and kept the three remaining lines (LS-045914, LS-046583, LS-047246), each 4750 net, 950 tax and 5700 total.
- Right: The summary is short and accurate: it gives the new invoice ID, the 17,100p total, and says the invoice was paid from the voided invoice's credit.
- Mistake: The list_lessons call fetched every lesson on 2026-10-07, about 22k characters, when get_invoice had already supplied the lesson ID. This was minor waste.
- Mistake: The agent never checked that the client was Freya Baker (CL-0234) paying for student Yara. It relied on the client_id in the invoice, which happened to match, so this caused no harm.

### large-record_payment-1

**Tool calling: passed.** The agent found Jane Kelly (CL-0294), listed her unpaid invoices and her allocations, and recorded a 50126p payment dated 2026-11-13. It allocated 37626p to INV-02840 (the remaining balance on her oldest-due invoice) and 12500p to INV-03247, which matches the expected changes exactly. ($0.0010, 5 requests, 11 s)
- Right: Converted £501.26 to 50126 pence correctly and dated the payment today, 2026-11-13.
- Right: Ordered the allocations oldest due date first, as the handbook requires: INV-02840 (due 2026-02-15), then INV-03247 (due 2026-03-15).
- Right: Called list_allocations to see what had already been paid on the open invoices. It allocated only the 37626p still owed on INV-02840 (total 58778) rather than the full total, and put the 12500p leftover on the next invoice.
- Right: Made a single record_payment call with explicit allocations, so the right invoice was marked paid and there were no unnecessary changes.
- Right: Used few calls and wrote a short, accurate summary.
- Mistake: The list_allocations result shown was truncated and possibly paginated, and the agent did not request page 2. That left a risk of missing earlier allocations on INV-02840 or INV-03247; here it was either visible in the cut-off text or lucky.
- Mistake: It did not check for unallocated credit or confirm the remaining balances with an explicit sum before allocating. This is minor and did not affect the result.
