Describe the Bug
Environment
-
Cursor version: 3.0.13 (commit/distro: d5c0e77a0214208f36b56d42e8e787de88d02ea4)
-
OS: Windows 10 (22H2, build 19045)
-
Workspace: E:\PROYECTOGAMBUSINAS (local drive, trusted folder)
-
Model: GLM-5 via Modal Research (OpenAI-compatible endpoint)
-
Other models in same workspace: Claude, GPT-4o — all work fine
Description
When using GLM-5 (Modal Research) as the Agent model, all tool calls (Read, Shell, Glob) return completely empty — no output, no error, no status code. The tools appear to execute but produce zero response. Other Cursor-native models in the exact same workspace and session work correctly, confirming this is not a workspace trust, sandbox, or filesystem issue.
Steps to Reproduce
-
Open Cursor 3.0.13 on Windows 10 (22H2, build 19045)
-
In Settings → Models, configure GLM-5 via Modal Research (OpenAI-compatible endpoint, API key per Modal)
-
Open workspace E:\PROYECTOGAMBUSINAS (trusted folder)
-
In Agent, request e.g.: “Read Las-Gambusinas\services\configuracionService.js” or “Run dir on the project root”
-
Observe that Read / Glob / Shell return no output and no error message
-
Switch to a Cursor-native model (e.g. Claude or GPT-4o) and repeat the same request: tools return results correctly
Expected Behavior
Read, Glob and Shell should return file contents, directory listings, or terminal output — same as with Cursor-native models.
Actual Behavior
All three tools (Read, Shell, Glob) return empty with no error:
-
Read: no file content shown
-
Glob: no file list returned
-
Shell: no command output, no exit code
No error message is displayed — the failure is completely silent.
Likely Cause
GLM-5 / Modal Research endpoint does not correctly format tool_calls responses in the OpenAI-compatible schema that Cursor expects for agent tools. The model may be:
-
Omitting
tool_callsfrom its response entirely -
Returning malformed JSON in tool call arguments
-
Using MTP/speculative decoding that corrupts tool call JSON (this has been reported by other users in the community)
Workaround
-
Use a Cursor-native model (Claude, GPT-4o, etc.) for Agent tasks
-
GLM-5 can still be used for chat without tool requirements
Related
-
Community reports indicate disabling MTP (
--speculative-config.method mtp) on self-hosted vLLM can fix similar tool calling corruption -
Cursor ≥ 2.0.74 includes patches for external model tool calling — issue persists even on latest version
Request
Can the Cursor team investigate how the Agent tool call protocol handles OpenAI-compatible endpoints that may not fully conform to the expected tool_calls schema? A more descriptive error or fallback would help diagnose these issues faster.
Operating System
Windows 10/11
Version Information
Cursor: 3.0.13 (from package.json at E:\Program Files\cursor\resources\app\package.json). Commit/distro: d5c0e77a0214208f36b56d42e8e787de88d02ea4.
For AI issues: which model did you use?
GLM-5 through Modal Research (OpenAI-compatible API / base URL override in Cursor).
For AI issues: add Request ID with privacy disabled
4a11cfeb-8c69-41bb-89e4-5a01e234a3ec
Does this stop you from using Cursor?
Yes — Cursor is unusable