2026-11-27 16:19 UTC

Funnel report: GLM-5.2 repeated a successful SQL query up to 254 times

state: expiredheat: lowuncertainty: mediumrelevance: mediumagent-reliability sql-agents tool-call-loopsFunnel

What is this?

In an October 28, 2026 account, Funnel describes a randomized test of its internal Reef data agent using GLM-5.2 or Claude Opus 4.8. Funnel says GLM repeated the same successful SQL query 113 times in one run and 254 in another, including when trying to get beyond a tool’s 20-row preview. It reports that GLM was faster per model call but made more tool calls and took longer on average to finish tasks. The account attributes the failures to a mix of model behavior and harness issues, including unclear tool contracts, invalid saved instructions, and missing safeguards; it is a company’s report, not an independently verified benchmark.

Why it matters

This is a concrete example of why an AI agent’s reliability depends on its tools and safeguards, not just the model. The report suggests that repeated successful calls can still waste time and compute when the agent cannot tell that a tool has returned only a preview. Clear pagination, schema validation, repeat-call detection, and end-to-end evaluation could make data agents more dependable—especially when teams switch models.

Current assessment

Funnel’s October 28, 2026 account describes a randomized comparison in its internal Reef data-agent platform: user tasks were assigned to GLM-5.2 or Claude Opus 4.8. Funnel reports GLM averaged 7.8 seconds per model call versus 18.1 for Opus, but made 19 tool calls per task versus 11 and took 14% longer to complete tasks on average. In separate runs, GLM repeated the same successful SQL query 113 and 254 times; in one instance it was trying to retrieve more than a tool’s 20-row preview exposed. Funnel attributes the failures to a combination of model behavior and harness problems, including ambiguous tool contracts, invalid saved schema instructions, and absent repetition safeguards. It says Opus overcame most of those issues, and notes it now uses GLM-5.3; these are company-reported observations, not independently verified comparative results. The practical implication is that model swaps can expose weaknesses in agent infrastructure, and evaluation should measure useful task completion, correctness, latency, call efficiency, and cost—not just response speed. The source provides no sample size or detailed methodology, so the comparative figures should not be generalized beyond this reported test.

Measured heat

no measured readings yet — the hourly heat pass fills this in

How the heat travelled

10-27 13:00⭐ origin echo-reconstructedFunnel describes a GLM-5.2 and Claude Opus 4.8 agent comparison in which GLM repeated the same successful SQL query 113 and 254 times; the a
Funnel on blog (echo) · attributed from hn.story.50281851
—
10-28 22:29first on hacker news · published · +33.5hOur AI Agent Executed the Same Successful SQL Query 254 Times
armcat
—
10-28 22:29amplified on hacker news 👑hn.story.50281851
armcat
peak 4 · 0 comments · 101% of case engagement
10-28 23:22our radar first saw it · +34.4hdiscovery anchor: hn.story.50281851—

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnOur AI Agent Executed the Same Successful SQL Query 254 Times
Retrieved article excerpt

Open article · Retrieved 2026-10-28T23:24:08.355503+00:00

October 28, 2026

# Our AI Agent Executed the Same Successful SQL Query 254 Times

What an A/B test between GLM and Opus taught us about agent harnesses.

At [Funnel](https://funnel.io/), we've been experimenting with different language models powering *Reef*, our internal data agent platform.

Reef operates across three layers of company knowledge - a *company world model* represented as a graph, structured operational data containing carefully modelled financial, SaaS and CRM metrics, and unstructured customer conversations from which we extract structured *claims*. It's a fairly sophisticated environment for an agent to navigate.

Recently, we ran a randomised A/B test comparing GLM-5.2, an open-weight model, against Claude Opus 4.8. Each new user task was randomly assigned a model, which remained the same throughout subsequent interactions, including deeper investigations and the creation of interactive dashboards we call *explorations*.

The initial results looked promising - across our observation window, GLM averaged 7.8 seconds per model call, compared to 18.1 seconds for Opus - more than twice as fast.

But when we looked at end-to-end task execution, a different picture emerged. GLM made 66% more tool calls, averaging 19 compared to Opus's 11. Despite faster individual responses, GLM took 14% longer to complete those tasks on average.

In two separate runs, **GLM executed the same successful SQL query 113 and 254 times.**

In one case, the model was attempting to retrieve more data from a tool that only exposed a 20-row preview. Rather than recognising the limitation, it repeatedly executed the same query. Every call succeeded but the agent obviously wasn't making any progress. A *successful* tool call is not necessarily a *useful* tool call.

We've observed similar tendencies with Kimi K2.6 and Qwen3.8 27B; Qwen is twice as aggressive on tool usage compared to GLM.

Now, it's tempting to blame the model, but that's missing the big picture. Some of our saved agent instructions referenced Athena tables and fields that didn't actually exist. Other problems revealed ambiguous tool contracts, missing safeguards against repetitive calls, or insufficiently explicit instructions about data retrieval. Opus was able to overcome most of these issues, but they are issues nonetheless.

**Agent harnesses matter as much as model intelligence.**

Different models interpret the same instructions, tools, and stopping conditions differently. Replacing a model can expose architectural assumptions that were previously invisible.

For engineers integrating open-weight models into existing agentic platforms, I'd suggest three things:

1. **Make tool contracts explicit.** Distinguish previews from complete results, expose pagination clearly, and communicate what a successful response actually means.
2. **Bound agent behaviour.** Detect repeated equivalent calls, enforce sensible execution budgets, and validate saved instructions against real schemas.
3. **Benchmark the whole system.** Measure useful task completion, correctness, latency, tool efficiency, billed costs and the effects of input caching.

Open-weight models offer exciting opportunities for cost, performance and control. Realising those benefits may require more than swapping out an API endpoint.

*PS. GLM-5.2 is a happy little camper now (actually, we now use GLM-5.3).*
armcat40
🟧 echo.blog ⭐Funnel describes a GLM-5.2 and Claude Opus 4.8 agent comparison in which GLM repeated the same successful SQL query 113 and 254 times; the aFunnel——

Interpretation history

Decision trace