---
title: "GPT-6.2 Astra on Pydantic AI Accounting"
description: "Questions about and changes to a tutoring agency's books, checked to the penny. Tool calling 70%, code mode 90%; rank 12 of 20."
canonical: https://models.pydantic.dev/models/gpt-6.2-astra/accounting_platform/
---

# GPT-6.2 Astra on Pydantic AI Accounting

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

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 70%   | 7 of 10      | $5.52 | 66       | 502        | 3.8 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed 16 of 20 runs: 7/10 with tool calling and 9/10 in code mode. It handles lookups, single-record edits and formula-driven calculations reliably. It struggles with audits that need every invoice checked against lesson and attendance records. All four failures were "find the wrong or missed-billed invoices" tasks.

#### Where it does well

- **Simple lookups and balances:** It passed `small-invoice_total-1` and `small-owed_on_invoices-1` in both modes, using 2–3 requests and about $0.04 per run. It correctly subtracted only the unreleased allocations (39452 + 49315 − 3563 = 85204).
- **Multi-step writes:** In `large-correction-2` it updated attendance, voided the invoice and reissued it, in the right order and with today's date. In `large-record_payment-1` it converted £501.26 to 50126p, applied the payment oldest-due first, and matched the expected state exactly in both modes.
- **Tutor margin calculations:** It passed all four runs. Attendance was fetched in single batch calls, and taxability was checked for gross-priced lessons.
- **Full sweeps:** `large-duplicate_lines-1` passed in both modes. It paged through all 4 invoice pages and excluded voids.

#### Mistakes it makes

- **Stopping before the work is done (tool calling):** In `large-missed_billed-1` it guessed lesson-ID ranges, then knowingly submitted a partial answer containing only INV-05846. In `large-wrong_invoices-1` it checked only for tax on non-taxable clients and stopped after about 15 calls, missing 9 invoices. `small-wrong_invoices-1` missed INV-00176 (a 6000 overcharge) because it spot-checked lessons instead of checking each one.
- **Missing rules:** In code mode, `large-wrong_invoices-1` re-priced lines correctly but never looked for lines that should not have been billed at all. The 3 invoices it missed (INV-06060, 06073, 06097) are the same ones found in the duplicate-lines task.
- **Unverified assumptions:** It skipped pagination checks, including `range(2,5)` without reading `pages`. In `small-tutor_margin-3` code mode it assumed every lesson was hourly. Several passing runs show no visible arithmetic.
- **Wasted calls:** It made unneeded `list_payment_orders` and ledger calls. In code mode it repeatedly hit the same avoidable errors: `**dict` type-check failures (3 runs) and overrunning the 100-nested-call limit (2 runs).

#### Tool calling compared with code mode

|                | Tools | Code mode |
| -------------- | ----- | --------- |
| Pass rate      | 7/10  | 9/10      |
| Total requests | 66    | 63        |
| Total cost     | $5.52 | $0.71     |

Code mode is the better choice for bulk work.

- **Cost on bulk work:** `large-duplicate_lines-1` cost $4.06 over about 390 get_invoice calls with tool calling, against $0.07 in code mode.
- **Bulk audits:** Code mode passed `large-missed_billed-1` and `small-wrong_invoices-1`, both of which failed with tool calling. In code mode it recomputed every line with integer half-up rounding instead of sampling.

On small tasks the two modes perform about the same, and tool calling is slightly cheaper.

## Runs

### small-invoice_total-1

**Tool calling: passed.** The agent called get_invoice for INV-00084 and returned the record's total field, 89700, as its answer. This matches the expected answer. ($0.037, 2 requests, 4 s)
- Right: It used one get_invoice call and read the 'total' field (89700) straight from the invoice record. That was the right source for a question about one invoice's total.
- Right: It answered in pence as an integer, in the required format.
- Mistake: It did not check that the line totals add up to 89700, but the question did not need that check.

### small-owed_on_invoices-1

**Tool calling: passed.** The agent found client CL-0007 and requested the unpaid invoices and all allocations together. INV-00155 (39452) and INV-00192 (49315) sum to 88767; subtracting the one unreleased allocation on INV-00155 (3563) gives 85204, which matches the expected answer. ($0.040, 3 requests, 9 s)
- Right: Filtered list_invoices by status 'unpaid' and got both unpaid invoices on a single page (total: 2).
- Right: Requested allocations in the same step as the invoices, which kept the run efficient.
- Right: Subtracted only the allocations on the unpaid invoices that had not been released (id 169, 3563 on INV-00155) and ignored allocations on invoices that are already paid.
- Right: Arithmetic is correct: 39452 + 49315 - 3563 = 85204.

### large-tutor_margin-3

**Tool calling: passed.** The agent looked up tutor Chen Mensah (TU-002), listed his October 2026 lessons and their attendance, checked three clients' tax status and the tutor's payment orders, then submitted 120741 pence. That matches the expected answer. ($0.15, 5 requests, 22 s)
- Right: Found the tutor ID TU-002 and filtered list_lessons to the October range 2026-10-01 to 2026-10-31.
- Right: Fetched attendance for all 67 lessons in a single batch call.
- Right: Checked is_taxable on clients (for example CL-0097, which is not taxable), which matters for gross-priced lines where the net amount depends on tax.
- Right: Got the correct final figure of 120741.
- Mistake: The transcript shows no visible arithmetic. The margin across 67 lessons was worked out without any shown computation, so the per-line rounding and split handling cannot be checked from the record.
- Mistake: The list_payment_orders call was unnecessary: the handbook defines tutor pay from tutor_rate per billable lesson, not from payment order totals.

### small-tutor_margin-3

**Tool calling: passed.** The agent looked up tutor Kai Iyer, the settings, his 37 October lessons and their attendance, and the taxable status of three clients. It then submitted a margin of 65045 pence, which matches the expected answer. ($0.087, 5 requests, 18 s)
- Right: Filtered list_lessons by tutor TU-001 and the full October range 2026-10-01 to 2026-10-31.
- Right: Fetched attendance for all 37 lessons in one call, so lessons marked 'missed' (e.g. LS-001419, LS-001445) could be left out.
- Right: Checked is_taxable for clients on gross-priced lessons (CL-0037 is not taxable, so its gross lessons have no tax removed), which the net-of-tax margin needs.
- Right: Final figure 65045 matches the expected answer.
- Mistake: The transcript shows no visible calculation. The answer appeared straight after the tool calls, so the arithmetic cannot be checked from the record.
- Mistake: The list_payment_orders call was not needed: margin uses the tutor_rate on each lesson, and the order totals are monthly sums that were not used.
- Mistake: Lesson and attendance results were cut off in the transcript, so it cannot be confirmed that every gross lesson's client had its taxable status checked. Only three clients were fetched.

### large-duplicate_lines-1

**Tool calling: passed.** The agent listed October 2026 invoices and pulled each non-void invoice with get_invoice, about 390 calls. It checked the lines for a repeated (lesson_id, student_id) pair and returned INV-06060, INV-06073 and INV-06097, which matches the expected answer. ($4.06, 14 requests, 21 s)
- Right: Read the question correctly: a duplicate means the same lesson_id and student_id appear on more than one line of the same invoice.
- Right: Left out void invoices; INV-06069 and INV-05811/05817, which look like voids, were skipped.
- Right: Paged through list_invoices, including page 4 and the invoices sent after 1 October (INV-06145 to INV-06154), so nothing was missed.
- Right: Fetched every remaining invoice instead of guessing from totals.
- Mistake: Several calls were wasted or sloppy. Early on it called list_invoices again with sent_from 2026-10-02 and spot-checked INV-05761, INV-05772 and INV-06154 before doing the full sweep. It also made a list_ledger_entries call that did not help with this question.
- Mistake: The full sweep used hundreds of get_invoice calls, which was costly but unavoidable given the tools.
- Mistake: The middle of the transcript is cut, so the step where the duplicates were found cannot be seen. The final answer is correct.

### large-missed_billed-1

**Tool calling: failed.** The agent had to find non-void invoices sent in October 2026 with a line for a student marked 'missed'. It checked the lines of only one or two regular invoices and scanned attendance for two blocks of 100 lesson IDs, then submitted a partial answer with just INV-05846, missing INV-05821 and INV-06080. ($0.38, 11 requests, 62 s)
- Right: Read the question correctly: it was looking for invoice lines whose student had attendance status 'missed', not 'missed_chargeable'.
- Right: Correctly identified INV-05846, whose line for LS-041761/ST-0127 matches a 'missed' attendance record.
- Right: Told the user the result was partial and unverified.
- Mistake: It never fetched the lines of most October invoices. Only INV-05761 and INV-05846 were checked fully (plus voids/reissues INV-05811, 06146, 05817, 06154). It should have gone through every non-void October invoice with get_invoice and cross-checked each line's attendance.
- Mistake: It scanned attendance by guessing ranges of lesson IDs (LS-041700–041899) instead of using the lesson IDs on the invoices' own lines. Most invoiced September lessons fall outside those ranges, so INV-05821 and INV-06080 were missed.
- Mistake: It stopped early and called final_result with an answer it knew was incomplete, rather than carrying on through the remaining invoices.
- Mistake: Its list_invoices call with sent_from 2026-10-02 was only needed because the first call's result was cut off; it did not page through or batch the work in a way that covered every invoice.

### large-wrong_invoices-1

**Tool calling: failed.** The agent listed the four pages of October 2026 invoices and checked the invoice headers. It found three invoices for non-taxable clients that still carried tax (INV-05851, INV-06016, INV-06105) and reported those. It never recomputed line charges from the lesson records, so it missed nine other wrong invoices in the expected answer. ($0.34, 9 requests, 32 s)
- Right: Paged through all four pages of list_invoices for 1–31 October 2026.
- Right: Spotted that non-taxable clients CL-0097, CL-0270 and CL-0361 had tax on their invoices, confirmed it with get_client and get_invoice, and gave the correct overcharges (1050, 1150, 1875).
- Right: Left out void invoices such as INV-06069.
- Mistake: It only looked for one kind of error, tax wrongly charged to non-taxable clients. It never fetched lessons or attendance to recompute the line costs (hourly length, split shares, missed students, billable status). That left out INV-05791, 05821, 05846, 05877, 06017, 06060, 06073, 06080 and 06097.
- Mistake: It opened INV-05884, which has many split-looking lines (e.g. 1458 net / 2813 total), but did not check any lesson behind those lines before submitting.
- Mistake: It checked the ledger and allocations for CL-0097, which does not bear on whether an invoice is overcharged, and then stopped without checking anything else.
- Mistake: It called final_result after about 15 calls, with no sign it had run out of budget; the check across all invoices was left unfinished.

### small-wrong_invoices-1

**Tool calling: failed.** The agent pulled every October 2026 invoice and found three overcharges: INV-00158 (duplicate line, 4050), INV-00162 (tax on a non-taxable client, 863) and INV-00172 (wrong rate, 600). It missed INV-00176, which was overcharged 6000, so the run failed. ($0.33, 7 requests, 27 s)
- Right: Fetched the October invoice list and settings, then opened every invoice's lines rather than sampling.
- Right: Spotted the duplicated LS-001226 line in INV-00158, an overcharge of 4050.
- Right: Checked get_client for CL-0014, found is_taxable False and identified 863 of wrongly charged tax on INV-00162.
- Right: Checked LS-001295's rate (6000 hourly, 1h) against the 6500 line on INV-00172, an overcharge of 600.
- Right: Checked the split lessons LS-001063/LS-001138 and LS-001219 against attendance to confirm their per-student shares were right.
- Mistake: It never checked systematically that each invoiced lesson was billable and each invoiced student was charged. It only spot-checked a few lessons with get_lessons/list_attendance.
- Mistake: It called list_lessons for September lessons with status 'cancelled' but did not compare the results (truncated in the transcript) against the lesson IDs on the invoices. One of INV-00176's 6000 History lines (Harry Thomas) was presumably a non-billable lesson or a 'missed' student that should not have been charged.
- Mistake: It submitted final_result right after that cancelled-lessons call without following up. It should have run get_lessons and list_attendance on every invoiced lesson ID, or at least on the cancelled list's matches, to catch the 6000 overcharge on INV-00176.

### large-correction-2

**Tool calling: passed.** The agent looked up INV-06372 and found the 7 Oct lesson LS-045235 for student ST-0332. It marked that attendance as missed, voided the invoice dated today, and reissued an invoice for the remaining three lessons (17100), which credit paid in full. The run passed. ($0.033, 5 requests, 16 s)
- Right: Called search_clients and get_invoice in parallel and took the lesson ID LS-045235 and student ID ST-0332 straight from the invoice line, so no separate lesson lookup was needed.
- Right: Did the steps in the right order: update_attendance to 'missed', then void_invoice dated 2026-11-13, then create_invoice dated 2026-11-13.
- Right: Put only the three remaining lessons (LS-045914, LS-046583, LS-047246) on the new invoice.
- Right: Gave an accurate summary: new invoice total 17100, paid from the credit freed by the void.
- Mistake: The agent did not check that search_clients returned client Freya Baker rather than a student named Yara. The client ID on the invoice (CL-0234) matched, so no harm was done.

### large-record_payment-1

**Tool calling: passed.** The agent found client CL-0294 and listed the unpaid invoices and existing allocations. It recorded a 50126p payment split across the two oldest-due invoices: 37626p to INV-02840 and 12500p to INV-03247, which matches the expected state exactly. ($0.058, 5 requests, 15 s)
- Right: Converted £501.26 to 50126 pence correctly.
- Right: Checked the existing allocations (list_allocations) to find what was still owed on INV-02840 instead of assuming the full total was due.
- Right: Applied the money oldest due date first: INV-02840 (due 2026-02-15) was settled, then the remainder went to INV-03247.
- Right: Dated the payment today, 2026-11-13, as the handbook requires.
- Right: The summary correctly says 12504p is still due on INV-03247 (25004 - 12500).
- Mistake: The list_allocations result was truncated ('364 more characters'), so the transcript does not show how the agent got 37626 as the remaining amount on INV-02840. The figure turned out correct, but the visible tool output does not fully support it.
- Mistake: The agent did not check whether the client already had unallocated credit, or whether other allocations on INV-03247 affected its remaining balance. It worked out here, but that was not verified.
