Many tool calls rejected due to missing required parameters #109

Closed
opened 2026-02-16 17:25:14 -05:00 by yindo · 5 comments
Owner

Originally created by @GitMurf on GitHub (Jun 17, 2025).

Originally assigned to: @thdxr on GitHub.

I am using OpenAI gpt-4.1 mostly and seem to be getting a lot of failed tool calls. For example on the edit file tool it misses the offset and index parameters (off top of my head). I instruct it that it is missing those required parameters and then the rest of the session it seems to work ok.

Another common one I’ve noticed missed from a lot of different tool calls is the timeout parameter.

It seems as if maybe the schema / zod requirements have been updated recently but the prompts / tool descriptions and parameter descriptions have not been updated? Just guessing.

Is this happening for others? I doubt this is a gpt-4.1 issue because it does very well with tool calling with other agentic tools like Goose, Aider etc.

Let me know if you have any questions or need me to test anything. I am pulling / building from master (dev branch).

Originally created by @GitMurf on GitHub (Jun 17, 2025). Originally assigned to: @thdxr on GitHub. I am using OpenAI gpt-4.1 mostly and seem to be getting a lot of failed tool calls. For example on the edit file tool it misses the offset and index parameters (off top of my head). I instruct it that it is missing those required parameters and then the rest of the session it seems to work ok. Another common one I’ve noticed missed from a lot of different tool calls is the timeout parameter. It seems as if maybe the schema / zod requirements have been updated recently but the prompts / tool descriptions and parameter descriptions have not been updated? Just guessing. Is this happening for others? I doubt this is a gpt-4.1 issue because it does very well with tool calling with other agentic tools like Goose, Aider etc. Let me know if you have any questions or need me to test anything. I am pulling / building from master (dev branch).
yindo closed this issue 2026-02-16 17:25:14 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 17, 2025):

i'm working through some of these issues today - quick question how come you're using 4.1 instead of codex?

@thdxr commented on GitHub (Jun 17, 2025): i'm working through some of these issues today - quick question how come you're using 4.1 instead of codex?
Author
Owner

@thdxr commented on GitHub (Jun 17, 2025):

can you see if 0.1.71 is better?

@thdxr commented on GitHub (Jun 17, 2025): can you see if 0.1.71 is better?
Author
Owner

@GitMurf commented on GitHub (Jun 17, 2025):

quick question how come you're using 4.1 instead of codex?

Not familiar with the codex model. Can you link to it in OpenAI docs? Also between OpenAI and GitHub there are about 7 different things referred to as Codex 🤣 so I get confused easy.

@GitMurf commented on GitHub (Jun 17, 2025): > quick question how come you're using 4.1 instead of codex? Not familiar with the codex model. Can you link to it in OpenAI docs? Also between OpenAI and GitHub there are about 7 different things referred to as Codex 🤣 so I get confused easy.
Author
Owner

@GitMurf commented on GitHub (Jun 17, 2025):

can you see if 0.1.71 is better?

Will test shortly and let you know.

@GitMurf commented on GitHub (Jun 17, 2025): > can you see if 0.1.71 is better? Will test shortly and let you know.
Author
Owner

@GitMurf commented on GitHub (Jun 18, 2025):

can you see if 0.1.71 is better?

Ok after some testing it seems like the tool calling issues have been resolved @thdxr ... nice work, thanks!!

@GitMurf commented on GitHub (Jun 18, 2025): > can you see if 0.1.71 is better? Ok after some testing it seems like the tool calling issues have been resolved @thdxr ... nice work, thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#109