Skip to content

[DISCORD:1416373478353010698] Example with complex tool selection (50+ tools) #7807

@wardpeet

Description

@wardpeet

This issue was created from Discord post: https://discord.com/channels/1309558646228779139/1416373478353010698

In the docs, it is recommended to use a max of 5 tools for an agent.

Is there an example of a Mastra agent which has say 50+ tools and it has an agent or some system to pick the most relevant tool to a task? I find I'm calling too many duplicate tools in parallel and we are trying to give users the ability to add more tools (hence why we can't limit to the 5 tools).

I was thinking of setting something like BigTool up on a MCP as an entry to the tools but don't know if there is a better native pattern for Mastra?

Thinks I was thinking about is maybe storing and searching for tools in my database. An agent to select the right tool. Sub agents with categories of tools. And I'm sure there are smarter patterns that I don't know of yet.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions