---
title: "GLM 5.3 on Pydantic AI Combined"
description: "The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 56.5%, code mode 75.9% over four benchmarks; rank 35 of 44."
canonical: https://pydantic.dev/models/list/glm-5.3/pydantic_ai/
---

# GLM 5.3 on Pydantic AI Combined

> The mean of the six Pydantic AI benchmarks; code mode is compared over the four that have a code mode run. Tool calling 56.5%, code mode 75.9% over four benchmarks; rank 35 of 44.
>
> Markdown copy of https://pydantic.dev/models/list/glm-5.3/pydantic_ai/. 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/pydantic_ai.md. The model's page: https://pydantic.dev/models/list/glm-5.3.md

## Scores

Cost is the mean cost of one task. Code mode is compared with tool calling over the four benchmarks run in both modes (https://pydantic.dev/models/codemode.md).

|                                      | Tool calling | Code mode |
| ------------------------------------ | ------------ | --------- |
| Score, all six benchmarks            | 56.5%        | –         |
| Score, the four with a code mode run | 59.7%        | 75.9%     |
| Cost per task, all six               | $0.65        | –         |
| Cost per task, the four              | $0.94        | $1.10     |

## Each benchmark

| Benchmark                                                                                      | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                          |
| ---------------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | ------------------------------------------------------------- |
| [Pydantic AI - Billing ops](https://pydantic.dev/models/benchmarks/billing_ops.md)             | 80%          | 100%      | +20    | $1.12         | $0.093                   | 18 of 44 | https://pydantic.dev/models/list/glm-5.3/billing_ops.md       |
| [Pydantic AI - Customer support](https://pydantic.dev/models/benchmarks/customer_support.md)   | 40%          | 50%       | +10    | $0.066        | $0.097                   | 22 of 44 | https://pydantic.dev/models/list/glm-5.3/customer_support.md  |
| [Pydantic AI - SQL data analysis](https://pydantic.dev/models/benchmarks/sql_data_analysis.md) | 50%          | 70%       | +20    | $1.29         | $1.42                    | 25 of 44 | https://pydantic.dev/models/list/glm-5.3/sql_data_analysis.md |
| [Pydantic AI - Research & deck](https://pydantic.dev/models/benchmarks/research_deck.md)       | 68.9%        | 83.7%     | +14.8  | $1.29         | $2.78                    | 30 of 44 | https://pydantic.dev/models/list/glm-5.3/research_deck.md     |
| [Pydantic AI - Structured output](https://pydantic.dev/models/benchmarks/structured_output.md) | 50%          | –         | –      | $0.080        | –                        | 39 of 44 | https://pydantic.dev/models/list/glm-5.3/structured_output.md |
| [Pydantic AI - LLM Judge](https://pydantic.dev/models/benchmarks/llm_judge.md)                 | 50%          | –         | –      | $0.031        | –                        | 32 of 44 | https://pydantic.dev/models/list/glm-5.3/llm_judge.md         |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
Across five benchmarks the model scored between 50% and 100%, and code mode scored higher wherever both modes were run (Billing ops 100% vs 80%, Research & deck 84% vs 69%, SQL data analysis 70% vs 50%). Its arithmetic and handling of domain rules were usually correct. Its main failure was losing or dropping content at the point of action: truncated or missing tool arguments, overriding its own correct objections, and running out of requests on long tasks. It cannot take image input, so image-dependent tasks ran blind.

#### Strengths
- In Billing ops it read existing allocations before writing and passed all 4 write tasks, catching a same-day part-payment that its first plan would have misallocated.
- In Structured output it read £000 scaling, bracket signs, tax credits and group/parent splits correctly in every reviewed conversation, and re-added subtotals before answering.
- In SQL data analysis it handled past-midnight service days, `+k` repeat names and distance-based interpolation correctly, and verified legs against raw calls.
- In LLM Judge every key-point verdict quoted specific evidence such as invoice numbers, amounts and dates, and every run returned a valid `final_result` in one request.
- In Research & deck both runs reconciled database figures such as restated revenue and TTM growth by query or script, and both final notes stated what could not be verified.

#### Weaknesses
- In Structured output all 5 failures were final `accounts` calls that left out balance-sheet or staff-cost fields the model had just listed in its own text, and no run tried to recover.
- In LLM Judge all 5 failures were cases where it raised the correct objection and then answered yes anyway, most often on `no_contradiction` checks.
- In Billing ops tool-calling mode, paginated calls were recorded without their filters and repeated up to eight times, and it missed anomalies that were present in bulk results it had read.
- In SQL data analysis it ran out of requests in 3 cases and failed both multi-stop tour cases in both modes.
- In Research & deck tools mode it stated terms from a contract it never read, and it reasoned about the grader instead of the material in several Structured output and LLM Judge runs.

#### Tool calling compared with code mode
- In Billing ops code mode passed every large audit and cost $0.93 against $11.23, because records stayed in sandbox variables instead of being read in context, and the dropped-argument problem did not appear.
- In SQL data analysis code mode read the full DATA.md with `pathlib`, which turned three tool-mode failures caused by truncated transfer rules into passes, but costs were similar or higher and it lost one case it passed in tool mode.
- In Research & deck only code mode passed: it wrote a pure-Python JPEG decoder to inspect photos, at 2.4 times the requests and 2.2 times the cost, despite sandbox friction such as missing `struct` and time-outs.
- In Billing ops tool calling was slightly leaner on small tasks (2 to 6 requests against 3 to 11), while Structured output and LLM Judge ran tool calling only, so they offer no comparison.
