---
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 29 of 32."
canonical: https://models.pydantic.dev/models/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 29 of 32.
>
> Markdown copy of https://models.pydantic.dev/models/glm-5.3/pydantic_ai/. 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>`
- Any other question about the models: `GET https://models.pydantic.dev/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://models.pydantic.dev/mcp`. More: https://models.pydantic.dev/usage.md

About the benchmark: https://models.pydantic.dev/benchmarks/pydantic_ai.md. The model's page: https://models.pydantic.dev/models/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://models.pydantic.dev/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.14     |

## Each benchmark

| Benchmark                                                                                | Tool calling | Code mode | Change | Cost per task | Cost per task, code mode | Rank     | Runs                                                              |
| ---------------------------------------------------------------------------------------- | ------------ | --------- | ------ | ------------- | ------------------------ | -------- | ----------------------------------------------------------------- |
| [Pydantic AI Accounting](https://models.pydantic.dev/benchmarks/accounting_platform.md)  | 80%          | 100%      | +20    | $1.12         | $0.093                   | 16 of 32 | https://models.pydantic.dev/models/glm-5.3/accounting_platform.md |
| [Pydantic AI Support Inbox](https://models.pydantic.dev/benchmarks/support_inbox.md)     | 40%          | 50%       | +10    | $0.066        | $0.097                   | 17 of 32 | https://models.pydantic.dev/models/glm-5.3/support_inbox.md       |
| [Pydantic AI Transit Planner](https://models.pydantic.dev/benchmarks/transit_planner.md) | 50%          | 70%       | +20    | $1.29         | $1.57                    | 22 of 32 | https://models.pydantic.dev/models/glm-5.3/transit_planner.md     |
| [Pydantic AI Seed Deck](https://models.pydantic.dev/benchmarks/seed_deck.md)             | 68.9%        | 83.7%     | +14.8  | $1.29         | $2.78                    | 26 of 32 | https://models.pydantic.dev/models/glm-5.3/seed_deck.md           |
| [Pydantic AI Companies House](https://models.pydantic.dev/benchmarks/companies_house.md) | 50%          | –         | –      | $0.080        | –                        | 31 of 32 | https://models.pydantic.dev/models/glm-5.3/companies_house.md     |
| [Pydantic AI Judge Accuracy](https://models.pydantic.dev/benchmarks/judge_accuracy.md)   | 50%          | –         | –      | $0.031        | –                        | 21 of 32 | https://models.pydantic.dev/models/glm-5.3/judge_accuracy.md      |

## How it did on the Pydantic AI benchmarks

Written by an LLM from reviews of every run.

#### Overall
The model reads source material accurately and checks its own arithmetic, but it often loses information between its reasoning and its final tool call, and it accepts work leniently when judging. Where code mode was available it scored higher (accounting_platform 100% vs 80%, seed_deck 84% vs 69%, transit_planner 70% vs 50%). Tool-calling-only benchmarks came in at 50% (companies_house, judge_accuracy). Expect strong results on lookups and calculations, and weaker ones on bulk audits, long multi-step routing tasks and strict yes/no grading.

#### Strengths
- In accounting_platform it passed every lookup, calculation and write task in both modes, and it read allocations before writing so a payment was not misallocated.
- In companies_house it handled £000 scaling, bracket signs, tax credits and the group/parent split correctly, and it re-added subtotals before answering.
- In seed_deck code mode it wrote a pure-Python JPEG decoder to view photos on an endpoint without image input, and it reconciled revenue and margin figures by query.
- In judge_accuracy its key-point verdicts quoted specific wording, dates and amounts, and its reasoning found the real defect in most failed cases.
- In transit_planner it expanded repeated services, interpolated untimed calls and cross-checked routes with independent searches.

#### Weaknesses
- In companies_house all 5 failures were truncated `accounts` tool arguments that left out figures it had just written in its reasoning, and no run recovered after its single request.
- In judge_accuracy all 5 failures were yes verdicts where it raised the correct objection and then overrode it, mostly on `no_contradiction` checks, and it sometimes reasoned about how the grader would score rather than about the material.
- In accounting_platform tool calling it repeated paginated calls with filter arguments missing, up to eight times in a row, and it missed anomalies in bulk data it was reading by eye.
- In transit_planner three tools-mode failures came from not reading the transfer-time rule at the end of `DATA.md`, and three runs used up the 80-request budget.
- In seed_deck tools mode it presented contract terms it never read as facts and asked the founder the same question repeatedly.

#### Tool calling compared with code mode
- In accounting_platform code mode passed every large audit and cost $0.93 against $11.23, because it compared records exactly in sandbox variables, and the dropped-argument problem did not appear there.
- In seed_deck code mode was the only passing run because it could reach raw image bytes, at 2.4 times the requests and 2.2 times the cost of tools mode.
- In transit_planner code mode fixed three transfer-related failures but lost `departure_profile`, and it cost about 22% more ($15.70 vs $12.87) despite using fewer requests.
- Code mode brought its own friction, including missing sandbox features, timeouts that wiped state and type-check failures (seed_deck, transit_planner), while tool calling was slightly leaner on small accounting_platform tasks.
