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

# GPT-6.1 Terra on Pydantic AI Accounting

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

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time    |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | ------- |
| Tool calling | 70%   | 7 of 10      | $0.32 | 46       | 169        | 3.2 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

The model passed **15 of 20 runs**: **7/10 with tool calling** and **8/10 in code mode**. It reliably handles lookups, payments, corrections and margin calculations. All five failures are audit tasks that require scanning many invoices: duplicate lines, missed-but-billed students and wrong invoices.

#### Where it does well

- **Targeted lookups and writes.** It passed invoice_total, owed_on_invoices, record_payment and correction-2 in both modes, using 2–6 requests each. It converted £501.26 to 50126p, allocated payments oldest due date first, and marked attendance as missed before voiding and reissuing.
- **Tutor margin.** It passed all four runs (small and large, both modes). Code mode showed the full working: billable-status filtering, splitting charges among charged students, ROUND_HALF_UP rounding, and removing tax from gross lessons.
- **Efficient fetching.** It routinely ran independent lookups in parallel.

#### Mistakes it makes

- **Gives up on large scans and submits a definitive wrong answer (tools).** In duplicate_lines-1 it opened 40 of 384 invoices. In missed_billed-1 it opened 11 of about 390. Both times it admitted the check was incomplete but still submitted `{"ids": []}`.
- **Checks too narrowly.** In code mode, wrong_invoices compared each line with its expected price but never looked for repeated lesson/student lines.
  - Large case: it found 9 of 12 invoices and missed INV-06060, INV-06073 and INV-06097. These are the same three invoices it found correctly in the duplicate_lines task.
  - Small case: it missed INV-00158, a duplicated line that the tool-calling run had caught.
- **Fragile code.** In three runs it first tried to make more than 100 nested calls and hit the limit before switching to batches. It hardcoded the 20% tax rate (cost/6 or 0.20). In small tutor_margin it treated every lesson as hourly.
- **Doesn't verify its figures.** It relied on truncated allocation output in record_payment. Several tool-calling runs give correct numbers with no visible arithmetic.

#### Tool calling compared with code mode

|                | Tools  | Code mode |
| -------------- | ------ | --------- |
| Passed         | 7/10   | 8/10      |
| Total requests | 46     | 67        |
| Total cost     | $0.321 | $0.153    |

Code mode costs about half as much in total, even though it makes more requests. The difference is clearest on large scans: duplicate_lines took $0.016 in code mode against $0.069 with tools, and code mode passed where tools failed. Code mode covered all 384 invoices in batches of 100. Tool calling ran out of steam on the same scans.

On the small tasks, tool calling's slow invoice-by-invoice reading was more thorough. It passed small wrong_invoices by spotting the duplicate line, which code mode's per-line diff missed, though tools spent $0.074 doing it.

**Recommendation:** prefer code mode for bulk audits, but prompt it to check for structural errors such as duplicates and lessons already invoiced, not just per-line prices.

## Runs

### small-invoice_total-1

**Tool calling: passed.** The agent called get_invoice for INV-00084, read the stored total of 89700 pence and submitted it. This matched the expected answer. ($0.0043, 2 requests, 3 s)
- Right: Used a single get_invoice call and took the invoice's 'total' field (89700), which already includes tax, as the handbook defines it.
- Right: Returned the answer as an integer in pence, which is the required format.

### small-owed_on_invoices-1

**Tool calling: passed.** The agent found client CL-0007 and pulled the unpaid invoices INV-00155 (39452) and INV-00192 (49315) along with all of the client's allocations. It subtracted the one unreleased allocation on INV-00155 (3563) and answered 39452 + 49315 - 3563 = 85204, which matches the expected answer. ($0.0047, 3 requests, 5 s)
- Right: Requested the unpaid invoices and the allocations in parallel, so the job took three tool calls.
- Right: Used only the allocations applied to the unpaid invoices (id 169, 3563 on INV-00155) and confirmed released_on was None.
- Right: The arithmetic was right: 88767 - 3563 = 85204.

### large-tutor_margin-3

**Tool calling: passed.** The agent fetched Chen Mensah's October 2026 lessons, their attendance, the settings and three clients' taxable status, then submitted 120741, which matches the expected answer. The arithmetic is not visible in the transcript. ($0.021, 5 requests, 24 s)
- Right: Found the tutor (TU-002) and filtered lessons to the right date range, 2026-10-01 to 2026-10-31.
- Right: Fetched attendance for all 67 lessons in a single batched call.
- Right: Checked client taxability for CL-0097, CL-0065 and CL-0269. CL-0097 is not taxable, which matters for gross-priced lessons where net = cost − tax.
- Right: Gave the final answer as integer pence.
- Mistake: Called list_payment_orders for TU-002 even though the payment order totals are not needed. The margin should be worked out from tutor_rate per lesson. The call was harmless but wasted a request.
- Mistake: There is no visible computation for the per-lesson split, rounding and tax handling. The result was correct, but the work behind it cannot be checked from the transcript.

### small-tutor_margin-3

**Tool calling: passed.** The agent found tutor TU-001, listed his October 2026 lessons and their attendance, and checked taxable status for the three clients with gross-priced lessons. It returned 65045, which matches the expected answer. ($0.012, 5 requests, 18 s)
- Right: Called get_settings to get the 20% tax rate, which is needed to strip tax out of gross-priced lessons.
- Right: Queried lessons for the full October range (2026-10-01 to 2026-10-31) by tutor, counting lessons by date regardless of invoicing.
- Right: Pulled attendance for all 37 lessons in one list_attendance call to see who was charged and who was 'missed'.
- Right: Checked is_taxable only for the clients on gross lessons (CL-0037, CL-0002, CL-0008). CL-0037 is not taxable, so its gross lessons keep the full cost as net, and the agent did not over-fetch.
- Right: The final figure matches the expected 65045.
- Mistake: The transcript shows no working for the per-lesson costs, gross-to-net tax removal or tutor pay before final_result, so the arithmetic cannot be verified. Showing the breakdown would have been better practice.
- Mistake: Nothing visible shows the agent excluded lessons with non-billable status or lessons where tutor pay applies but no student is charged (e.g. LS-001419 and LS-001445, where the students 'missed'). The correct answer suggests it handled these, but it did so without showing the reasoning.

### large-duplicate_lines-1

**Tool calling: failed.** The agent listed October 2026 invoices, opened 40 of 384 non-void invoices one at a time, found no duplicate student-lesson lines among them, and stopped. It said the check was incomplete but submitted an empty list. The expected answer was INV-06060, INV-06073 and INV-06097, none of which it opened. ($0.069, 5 requests, 27 s)
- Right: Used list_invoices with sent_from/sent_to and paged through all 4 pages to cover every October invoice.
- Right: Correctly understood that a duplicate means two lines on one invoice with the same lesson_id and student_id.
- Right: Told the user plainly that only 40 of 384 invoices had been checked.
- Mistake: After the first 20 sequential get_invoice calls (INV-05761 to INV-05780), it jumped to a hand-picked batch (INV-05884, INV-05824, INV-06132, etc.), mostly large or late-sent invoices. It skipped INV-06060, INV-06073 and INV-06097, which sit just after INV-06059 in the listing.
- Mistake: It stopped after only 40 get_invoice calls instead of going through the remaining 344 non-void invoices. Opening every non-void invoice was needed to find the duplicates.
- Mistake: It submitted {"ids": []} as the final answer even though it knew the result was incomplete, so its partial result was presented as a definitive 'none found'.
- Mistake: It did not look for a cheaper way to narrow the search, such as checking invoices whose line count or total looked unusual. Instead it spent its budget on invoices that showed no signal of a problem.

### large-missed_billed-1

**Tool calling: failed.** The agent listed October 2026 invoices across four pages, then opened only 11 of the roughly 390 invoices (INV-06145 to INV-06154 and INV-05761) and checked attendance for their lessons. It found no matches and submitted an empty list, while admitting it had not checked the other invoices. The expected answer was INV-05821, INV-05846 and INV-06080. ($0.062, 5 requests, 23 s)
- Right: Paged through every October invoice with list_invoices (pages 1-4) and could see which were void.
- Right: Correctly matched invoice lines (lesson_id, student_id) against list_attendance statuses to look for 'missed' students.
- Right: Said openly in its final message that the check was incomplete.
- Mistake: After listing the invoices it called get_invoice on only 11 of them (INV-06145 to INV-06154 and INV-05761). It never opened the other non-void October invoices, including INV-05821, INV-05846 and INV-06080.
- Mistake: It submitted final_result {"ids": []} even though it said it could not give a complete list. That is a definitive wrong answer rather than continuing the search.
- Mistake: It fetched September lessons with list_lessons (page 1 only) but never used that data. A better approach was to scan September attendance for 'missed' students, map those lessons to invoice lines, or keep fetching invoices in batches until all were covered.
- Mistake: It also queried attendance for the 'replacement' invoices sent 3-10 October, a reasonable guess, but it did not follow the lead to the rest of the invoices.

### large-wrong_invoices-1

**Tool calling: failed.** The agent listed every October invoice and spotted three where a non-taxable client was charged tax. It confirmed these three, opened three more invoices without checking them, and submitted only the three, saying the list might not be complete. It missed 9 of the 12 expected overcharged invoices. ($0.060, 6 requests, 28 s)
- Right: Read all four pages of October invoices and the settings (20% tax).
- Right: Found the three tax-on-non-taxable-client errors (INV-05851, INV-06016, INV-06105) with the right amounts (1050, 1150, 1875).
- Right: Checked those finds against client is_taxable flags and lesson and attendance records.
- Right: Was honest that the list might not be exhaustive.
- Mistake: Never recomputed lines for most invoices, so it missed other kinds of error: wrong rate, wrong length, split lessons not shared, students marked 'missed' still charged, and so on.
- Mistake: Opened INV-05821, which has a line totalling 4875 (the exact overcharge expected for that invoice), but never checked its lessons or attendance and left it out.
- Mistake: Opened INV-06021 and INV-05834 and dropped them without checking (neither turned out to be wrong).
- Mistake: Pulled only page 1 of September lessons and never pulled the attendance or lesson data needed to check every invoice line.
- Mistake: Submitted a list it knew might be incomplete instead of checking every non-void October invoice systematically.

### small-wrong_invoices-1

**Tool calling: passed.** The agent listed October 2026 invoices, fetched all 37 with get_invoice, and spotted three anomalies: a duplicated LS-001226 line on INV-00158, tax charged on non-taxable client CL-0014's line on INV-00162, and a 7800 line for LS-001295 on INV-00172. It then pulled September lessons and attendance and found a fourth (INV-00176). All four answers matched the expected result. ($0.074, 5 requests, 40 s)
- Right: Retrieved settings and every October invoice's lines before deciding anything.
- Right: Spotted the duplicated LS-001226 line on INV-00158 (overcharge 4050) and the 863 tax line for non-taxable CL-0014 on INV-00162.
- Right: Checked LS-001295 with get_lessons: hourly rate 6000 for 1 hour, net. That makes the correct line total 7200, not 7800, so the overcharge is 600.
- Right: Pulled all September lessons and their attendance to cross-check, which surfaced the INV-00176 error (6000).
- Mistake: Fetching all 37 invoices one by one plus the full September attendance cost a lot of calls, though this thoroughness was arguably needed to find the less obvious INV-00176 error.
- Mistake: The transcript gives no visible reasoning for the INV-00176 finding: the list_lessons page holding LS-001128 and the other HIST lessons is truncated. The answer was right, but the check behind it can't be traced.

### large-correction-2

**Tool calling: passed.** The agent set Yara's 7 October attendance to missed and voided INV-06372 on 2026-11-13. It then reissued an invoice dated today with the three remaining lessons (17100), which was paid automatically from released credit. The run passed. ($0.0062, 6 requests, 15 s)
- Right: Before changing anything, it gathered the invoice, settings, lessons, attendance and allocations in parallel calls.
- Right: It changed the 7 October line's attendance (LS-045235) to missed first, as the task asked, and only then voided the invoice.
- Right: It voided with date 2026-11-13 and reissued with date_sent 2026-11-13, leaving out LS-045235.
- Right: It kept the cancelled_chargeable/missed_chargeable lesson LS-045914 on the reissued invoice, which is correct because that lesson is still billable.
- Right: Its summary correctly gives the remaining credit as 22800 − 17100 = 5700.
- Mistake: The client search for 'Yara Baker' returned client Freya Baker (CL-0234), and the agent did not explicitly check that Yara is a student of that client. The invoice lines (ST-0332, 'French with Yara Baker') confirmed it indirectly, so the run was unaffected.

### large-record_payment-1

**Tool calling: passed.** The agent found Jane Kelly (CL-0294), checked her unpaid invoices and existing allocations, and recorded a 50126p payment dated 2026-11-13. It allocated 37626p to INV-02840, which this cleared, and 12500p to INV-03247, oldest due date first. The resulting changes match the expected answer and the run passed. ($0.0067, 4 requests, 10 s)
- Right: Converted £501.26 to 50126 pence correctly and dated the payment today, 2026-11-13.
- Right: Fetched the unpaid invoices and the existing allocations in parallel, so it could see how much was already paid on each invoice.
- Right: Allocated oldest due date first: 37626p clears the rest of INV-02840 (total 58778, so 21152 was already allocated), and the remaining 12500p goes to INV-03247.
- Right: Used only four tool calls.
- Mistake: The allocations result was truncated, so the 21152p already applied to INV-02840 is not visible in the transcript. The figure turned out right, but the agent did not re-query or show working to confirm it.
- Mistake: It also did not check whether INV-03247 already had part-payments, which would cap how much could go to it. The 12500p fit in this case.
