Problem with using tools by third-party models connected via API

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When working with the GLM-4.7 model integrated via API, specifically when executing a plan, I encounter constant errors when using tools. I would like to understand the cause and how to fix it.

Steps to Reproduce

With small amounts of necessary corrections and easy tasks, these problems do not arise. In the first few stages of plan execution, these problems are also not observed (small volume, short), but a little deeper in, problems begin.

Screenshots / Screen Recordings

Operating System

Windows 10/11

Version Information

Version: 2.4.28 (user setup)
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.19045

For AI issues: which model did you use?

GLM-4.7

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report.

GLM-4.7 isn’t officially supported in Cursor. The supported BYOK providers are OpenAI, Anthropic, Google, Azure, and AWS Bedrock: API Keys | Cursor Docs

Connecting via Override OpenAI Base URL might work for basic chat, but Cursor’s tool schemas (edit_file, search_files, etc.) are optimized for supported models. GLM-4.7 has trouble filling required tool parameters correctly, especially as the context grows, and that’s what shows up as the “Invalid arguments: contents: Required” and “glob_pattern: Required” errors.

Unfortunately, this isn’t something we can fix on our side. If you need agent or planning mode with tools, I’d recommend sticking to one of the officially supported models.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.