Provider returned error:

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

This issue occurs when using the built-in model, but no errors are reported with third-party models. Provider returned error: {“error”:{“code”:“1214”,“message”:“tools[0].type:type cannot be empty.”}} Request ID: ff627d44-37d5-4e27-bd0f-1658f506ec87
{“error”:“ERROR_PROVIDER_ERROR”,“details”:{“title”:“Provider Error”,“detail”:“Provider returned error: {"error":{"code":"1214","message":"tools[0].type:type cannot be empty."}}”,“isRetryable”:false,“additionalInfo”:{},“buttons”:,“planChoices”:},“isExpected”:true}
Provider Error Provider returned error: {“error”:{“code”:“1214”,“message”:“tools[0].type:type cannot be empty.”}}
IAi: Provider Error Provider returned error: {“error”:{“code”:“1214”,“message”:“tools[0].type:type cannot be empty.”}}
at o5A (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34244:23670)
at r5A (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34244:22658)
at m5A (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34245:6285)
at kou.run (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34245:10400)
at async _Oa.runAgentLoop (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46808:10024)
at async N3u.streamFromAgentBackend (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:9277)
at async N3u.getAgentStreamResponse (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:46862:13663)
at async bMe.submitChatMaybeAbortCurrent (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:34305:17597)
at async Ea (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:45787:4826)

Steps to Reproduce

In the dialog box, after selecting Claude 4.6 and entering content, an error message appears.
Provider returned error: {“error”:{“code”:“1214”,“message”:“tools[0].type:type cannot be empty.”}}

Operating System

MacOS

Version Information

Version: 2.6.14
VSCode Version: 1.105.1
Commit: eb1c4e0702d201d1226d2a7afb25c501c2e56080
Date: 2026-03-08T15:36:54.709Z
Build Type: Stable
Release Track: Default
Electron: 39.6.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report.

The tools[0].type:type cannot be empty error points to a formatting issue on our side when we send tool definitions to the model provider. A few questions to narrow it down:

  • Does this happen in all projects, or only one specific project?
  • Do you have any MCP servers set up (Cursor Settings > MCP)?
  • Does starting a brand new chat (not continuing an existing one) also trigger the error?
  • Does anything change after restarting Cursor?

Also, could you try switching to a different built-in model (for example, GPT-5) to see if this is specific to Claude?

Let me know your answers to the questions above, and that’ll help us figure out what’s causing it.

1.all projects

2.install laravel/boost,But even closing it doesn’t work, and uninstalling and reinstalling cursor doesn’t work either.

3.Even opening a new chat window doesn’t work. Not even restarting

4.This problem did not occur when using a custom model.

I have the same problem.
Provider returned error: {“error”:{“code”:“1214”,“message”:“tools[0].type:type cannot be empty.”}}

Request ID: d3a710d5-c664-42fc-95ea-7d1fa2839849

I have tried to change the model, change the prompt itself, restart Cursor and restart PC.

I was trying to make a “plan”.

I am working on windows.

Is there any solution?

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