# Where do tools do: agents or tasks?

**URL:** <https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863>\
**Category:** General\
**Created:** [October 18, 2024, 6:04am UTC](https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863 "2024-10-18T06:04:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Baruch\_Bashan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/baruch_bashan/32/542_2.png) [@Baruch\_Bashan](https://community.crewai.com/u/Baruch_Bashan)\
**Post date:** [October 18, 2024, 6:04am UTC](https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863/1 "2024-10-18T06:04:58Z")

</div>

It seems logical to me to have tools associated with tasks. Most of the examples and documentation show them associated with agents.  
Which is the best?

---

<div class="post-metadata">

**Author:** ![rokbenko](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rokbenko/32/492_2.png) [@rokbenko](https://community.crewai.com/u/rokbenko)\
**Post date:** [October 18, 2024, 6:57am UTC](https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863/2 "2024-10-18T06:57:24Z")

</div>

@Baruch_Bashan There’s no right or wrong.

It’s just that 1 agent can execute n tasks.

Consequently:

- If you attach a tool to the task, the tool can be used only with that task.
- If you attach a tool to the agent, the tool can be used with any task that the agent executes.

---

<div class="post-metadata">

**Author:** ![Baruch\_Bashan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/baruch_bashan/32/542_2.png) [@Baruch\_Bashan](https://community.crewai.com/u/Baruch_Bashan)\
**Post date:** [October 18, 2024, 7:25am UTC](https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863/3 "2024-10-18T07:25:17Z")

</div>

Thank you! Still working to grasp the way this works.  
Baruch

---

<div class="post-metadata">

**Author:** ![rthidden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.crewai.com/rthidden/32/2302_2.png) [@rthidden](https://community.crewai.com/u/rthidden)\
**Post date:** [January 29, 2025, 2:29am UTC](https://community.crewai.com/t/where-do-tools-do-agents-or-tasks/863/4 "2025-01-29T02:29:09Z")

</div>

If you assign a tool to a task, no other task can use that tool. Is my understanding of what you are saying correct?
