# \[BUG\] OpenAI Agent tools problems

**URL:** <https://community.n8n.io/t/bug-openai-agent-tools-problems/62559>\
**Category:** Questions\
**Created:** [November 21, 2024, 10:01am UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559 "2024-11-21T10:01:01Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_S](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mark_s/32/47188_2.png) [@Mark\_S](https://community.n8n.io/u/Mark_S)\
**Post date:** [November 21, 2024, 10:01am UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/1 "2024-11-21T10:01:01Z")

</div>

## Describe the problem/error/question

OpenAI assistant with tools do wrong queries for tools.

OpenAI returns right inputs but it doesn’t affect on tool input and stuck with first result.

## What is the error message (if any)?

## Please share your workflow

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/b/d/bdc2306c7a16ec5f8063d56c0dd05311fe30dab7.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/e/b/eb9cefb197507f5465198df3b0f2c72428557d9d.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/8/e/8e00e0fa0b6b35e66065935b73c73cfcc2802f44.png)

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/9/2/925fe3613a89e2991ffee92961f400862212eea5.png)

## Share the output returned by the last node

## Information on your n8n setup

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/26906_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [November 21, 2024, 10:08am UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/2 "2024-11-21T10:08:20Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![aya](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aya/32/194036_2.png) [@aya](https://community.n8n.io/u/aya)\
**Post date:** [November 27, 2024, 11:30am UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/3 "2024-11-27T11:30:29Z")

</div>

Hi @Mark_S,

could you provide more context regarding the workflow setup or share additional details? Would be great if you can also share your workflow.

> **Tip for sharing your workflow in the forum**
>
> #### Pasting your n8n workflow
> 
> * * *
> 
> Ensure to copy your n8n workflow and paste it in the _code block_, that is in between the pairs of triple backticks, which also could be achieved by clicking `</>` (preformatted text) in the editor and pasting in your workflow.
> 
> ```  
> \<your workflow\>  
> ```
> 
> Make sure that you’ve removed any sensitive information from your workflow and include dummy data or pinned data as much as you can!
> 
> * * *

---

<div class="post-metadata">

**Author:** ![Mark\_S](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mark_s/32/47188_2.png) [@Mark\_S](https://community.n8n.io/u/Mark_S)\
**Post date:** [November 27, 2024, 12:02pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/4 "2024-11-27T12:02:13Z")

</div>

I have simple node with Message to OpenAI assistant and tool - creating record in Supabase. The problem is that Assistant generates multiple tools input, but tool use only first result. I tested it multiple times.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/8/d8efcceb7ad36a2f8346841c062a19555dc50518.png)

---

<div class="post-metadata">

**Author:** ![AasimK](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aasimk/32/60245_2.png) [@AasimK](https://community.n8n.io/u/AasimK)\
**Post date:** [November 27, 2024, 1:21pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/5 "2024-11-27T13:21:49Z")

</div>

Hi @Mark_S Faced the same issue  
Have already reported here on community.  
Workaround for now what i did is created a sub workflow for each of my tools and called the sub workflow using Trigger workflow tool.  
As i can see in your screenshot,you have multiple tools so this workaround will be a hassle.Compared i had only 2 tools with connected to my agent.

Hope n8n team fixes this soon.

---

<div class="post-metadata">

**Author:** ![Mark\_S](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mark_s/32/47188_2.png) [@Mark\_S](https://community.n8n.io/u/Mark_S)\
**Post date:** [November 30, 2024, 8:02pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/6 "2024-11-30T20:02:21Z")

</div>

I replaced Supabase node with PostgreSQL and it worked but now the same but - check on screenshot the output is the same for first and all other runs - input isn’t.

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/0/8/08d63b2804732a3db9d8a94696a2d052d880f9d5.png)  
 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/d/2/d22fcee631f9c47f3f446fe9baa668651018614d.png)

---

<div class="post-metadata">

**Author:** ![aya](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/aya/32/194036_2.png) [@aya](https://community.n8n.io/u/aya)\
**Post date:** [December 5, 2024, 1:41pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/7 "2024-12-05T13:41:31Z")

</div>

@Mark_S have you tried what @AasimK suggested? Also, just fyi I think this is the related post that @AasimK is referring to: [Issue with Node as Tools calling several times with the same arguments - #13 by Baptiste\_JACQUEMET](http://community.n8n.io/t/issue-with-node-as-tools-calling-several-times-with-the-same-arguments/61487/13)

---

<div class="post-metadata">

**Author:** ![Mark\_S](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mark_s/32/47188_2.png) [@Mark\_S](https://community.n8n.io/u/Mark_S)\
**Post date:** [December 5, 2024, 1:58pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/8 "2024-12-05T13:58:44Z")

</div>

Yes, my problem is related to this topic.  
I know that I can use sub-workflows but the thing is to use tools for AI agent.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/36532_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [March 5, 2025, 1:58pm UTC](https://community.n8n.io/t/bug-openai-agent-tools-problems/62559/9 "2025-03-05T13:58:57Z")

</div>

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