---
title: "GLM 5.3 on Pydantic AI - Research & deck"
description: "Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 68.9%, code mode 83.7%; rank 30 of 44."
canonical: https://pydantic.dev/models/list/glm-5.3/research_deck/
---

# GLM 5.3 on Pydantic AI - Research & deck

> Questioning a founder and writing an eight-slide investor deck from a data room. Tool calling 68.9%, code mode 83.7%; rank 30 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/glm-5.3/research_deck/. 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/research_deck.md. The model on every Pydantic AI benchmark: https://pydantic.dev/models/list/glm-5.3/pydantic_ai.md

| Mode         | Score | Tasks passed | Cost  | Requests | Tool calls | Time     |
| ------------ | ----- | ------------ | ----- | -------- | ---------- | -------- |
| Tool calling | 68.9% | 0 of 1       | $1.29 | 31       | 59         | 8.5 min  |
| Code mode    | 83.7% | 1 of 1       | $2.78 | 75       | 75         | 16.4 min |

Each task was run once per mode.

## Review

Written by an LLM from the runs' transcripts.

#### Overall

GLM-5.3 passed 1 of 2 runs on `kestrel-cargo`: code mode passed (75 requests, $2.78), tools failed (31 requests, $1.29). The endpoint does not accept image input. Both linked spans are short attempts that died on HTTP 422 `does not accept image input` after the first `view_pdf`. The scored runs are later reruns in other traces, where the harness replaced each image with the text `this model cannot read images`. So this benchmark, which depends on photos and a scanned contract, was run blind.

#### Where it does well

- **Text and database figures.** Both runs reconciled 18 customer rows with "17 today", used the restated September revenue (£351,442), and checked TTM revenue (£3,085,543, +97%) and the 39.4% October margin by query or script.
- **Self-review.** After `check_deck` returned `ok`, the tools run still caught three wrong claims, including service growth of `2.7×` that should be `3.1×`.
- **Following the founder and the board.** Both left out app registrations and addressed the recall directly. Code mode kept Maya's exact slide order and corrected her memory of September revenue.
- **Honest about gaps.** Both final notes said what could not be verified.

#### Mistakes it makes

- **Unread facts stated as facts (tools).** Slide 7 says "fixed-price supply agreement" and "250 bikes a quarter" minimum, though the contract was never read.
- **Founder's wish dropped (tools).** Maya asked for the courier or canal photo, not illustrations; the cover is an SVG drawing.
- **Repeated questions.** Both runs asked Maya to match file names to photos after she said she could not (3 `ask_founder` calls in tools on this).
- **Sunk effort (code mode).** About 26 requests went on reading whiteboard handwriting pixel by pixel; no number was recovered.
- **Sandbox friction (code mode).** Six failed calls on missing features (`struct`, `int.from_bytes`, `relative_to`), two 30-second time-outs that wiped state, and two type-check failures.
- **Waste (tools).** Three full rewrites of a 49,000-character file and a stray `deck/_scratch_skip` file.

#### Tool calling compared with code mode

Code mode is the only reason this model passed. With raw file access it wrote a JPEG decoder in pure Python, rendered each photo as ASCII art, and picked `IMG_2093` (canal) while avoiding the likely prototype `IMG_1288`. In tools mode the same idea was blocked: `read_file` refuses binary files and DuckDB file access is disabled, so it had no route to the pixels. The price was 2.4 times the requests and 2.2 times the cost. Neither mode read the scanned supply agreement.

## Runs

### kestrel-cargo

**Tool calling: failed.** Built an 8-slide deck that passed `check_deck` twice, but the model could not see any image, so the cover used an SVG illustration instead of the courier photo Maya asked for, and the supply-agreement figures were never read. The run was marked failed. The linked span `cd46e47a180b2213` is only a 28-second attempt that died on HTTP 422 `model zai-org/GLM-5.3 does not accept image input` after `view_pdf`; the scored 31-request run is span `2895a3258fe6bc65` in trace `01a21eea8349884f1022cf9b6a664066`. ($1.29, 31 requests, 8.5 min)
- Right: Read the data room efficiently with parallel calls: 8 `read_file` calls per turn, then four `query` calls for `monthly_pnl`, `cash`, `operations` and `customers`.
- Right: Re-checked headline figures with SQL before writing: TTM revenue £3,085,543 against £1,566,223 (+97%), October gross margin 39.4%, average 3-month burn £48,651, runway 8.4 months.
- Right: Caught its own slip: an earlier mental figure of 43.5% for six-month gross margin was corrected to 39.1% (`763,710/1,954,293`).
- Right: Reconciled 18 customer rows with the roadmap's "17 today" by spotting that Parcelo is `churned`.
- Right: Used the restated September revenue (£351,442), left out app registrations as the board minutes asked, and gave the recall its own slide with the £58,000 cost and Parcelo's 33-bike churn.
- Right: After `check_deck` returned `ok`, did a content review and fixed three errors: service revenue growth `2.7×` changed to `3.1×` (`26,832/8,697`), a runway sentence that implied 24 months from £409k cash, and "no minimum rider age".
- Right: Told Maya plainly in the final note which two gaps it could not close.
- Mistake: Message 11: `view_pdf` on `documents/supply_agreement_signed.pdf` returned `Image ... was not sent: this model cannot read images`; `view_image` at message 13 did the same. The model had no way to see the scan or the 8 photos.
- Mistake: Messages 29, 33, 35: three `ask_founder` calls asked Maya to map file names to photos and read out the contract. She said each time she could not, so the second and third asks were wasted.
- Mistake: Messages 31, 37, 39: tried `read_file` on `images/IMG_2155.jpg` and DuckDB `read_text('/dataroom/images/IMG_1288.jpg')`; both were refused (`not a text file`, `file system operations are disabled by configuration`).
- Mistake: Final deck: Maya said "I'd still really like the courier with the parcels on the cover rather than made-up illustrations" and that the canal photo was fine too. The deck used an SVG cargo-bike drawing and no data-room photo.
- Mistake: Slide 7 says kits come "on a fixed-price supply agreement" with a minimum order of "250 bikes a quarter". The model never read the contract; "fixed-price" is in no file it opened, and the board minutes only say the minimum order "is a constraint below 250 bikes a quarter". It should have left both claims out.
- Mistake: Maya asked for the supplier contract's kit cost per bike; the deck has none.
- Mistake: Put `images/screenshot_2026-11-02.png` on the traction slide as the fleet dashboard on the strength of the file name alone.
- Mistake: Slide 3 text "rideable from age 14 in the UK" came from the model's own knowledge, not the data room.
- Mistake: Messages 49 and 51: two stray `write_file` calls created and then emptied `deck/_scratch_skip`, a junk file it could not delete.
- Mistake: Rewrote the whole ~49,000-character `deck/index.html` three times (messages 47, 53, 57) for small text fixes.

**Code mode: passed.** With no image input, the model wrote its own JPEG decoder in the sandbox, identified the canal photo and the prototype from ASCII renderings, and delivered an 8-slide deck in Maya's slide order that passed `check_deck`. The linked span `cf3cae1589f14ea6` is a 57-second attempt that died on HTTP 422 `does not accept image input`; the scored 75-request run is span `2955dc4e0347e979` in trace `01a21eea834e2d5550b2de13b5be7b65`. ($2.78, 75 requests, 16.4 min)
- Right: First `ask_founder` (message 29) got the cover line, the exact 8-slide order, "no team slide" and the photo rules in one reply, and the deck followed that order.
- Right: When `view_pdf` and `view_image` returned `this model cannot read images`, it read the JPEG bytes with `open(path, 'rb')` and wrote a baseline Huffman/DC decoder in pure Python (messages 45-49), then printed 150x100 colour-class ASCII art for all 8 photos.
- Right: From that art it classed `IMG_2093` as the canal shot (sky, trees, blue water, towpath, bike with green box), `IMG_1288` as the likely bare-frame prototype and `IMG_2188` as the whiteboard funnel.
- Right: Was honest about confidence: it could not be sure `IMG_2077` was the courier photo, so it used the canal photo, which Maya had said was fine.
- Right: Corrected Maya's memory of September revenue (about £404k) to the restated £351,442 and quoted October's £366,832 as the best month, +77.1% on October 2025.
- Right: Computed every headline figure in one script (message 133): TTM £3,085,543, +97.0%, service revenue £26,832 = 688 x £39.
- Right: Generated the SVG charts from the query rows in code, and ran a final audit of section count, `img` sources and minimum font sizes (14px HTML, 12px SVG) after `check_deck` returned `ok`.
- Mistake: Messages 1-5: three failed `run_code` calls on sandbox limits (`sorted` on `PosixPath`, no `relative_to`) before switching to `os.walk`.
- Mistake: Messages 31-37: three more failed calls for the EXIF parser (a syntax error, no `struct` module, no `int.from_bytes`).
- Mistake: Message 39: first read every photo as 769x1200 portrait from a wrong SOF parse; they are 1200x800. Corrected at message 49.
- Mistake: Messages 52 and 120: two 30-second sandbox time-outs reset the session and all decoder state had to be rebuilt; messages 122 and 124 then failed on type-check errors (`None` not iterable, `be` undefined).
- Mistake: Messages 81-133: about 26 requests went on a full IDCT of `IMG_2188` and glyph-by-glyph reading of the handwriting. It read no number, and the deck shows a crop of the whiteboard photo instead of funnel figures.
- Mistake: Message 79: asked Maya to confirm `IMG_2077` by file name after she had already said twice she does not know file names.
- Mistake: Message 143: was unsure whether slides 2 and 3 were in the concatenated file and relied on a `<section` count of 8 rather than printing the order.
- Mistake: The final audit printed `http links: 5` and the model did not look at what they were before finishing.
- Mistake: The supply agreement scan was never read, so no contract figure is in the deck.
- Mistake: Cost $2.78 and 75 requests, more than twice the tools run.
