What about function name collisions? #128
Replies: 2 comments 1 reply
-
Yep, completely agreed. There's a somewhat related discussion here: #94 We may want to consider giving guidance to clients that they automatically use the server name for namespacing on their end. |
Beta Was this translation helpful? Give feedback.
-
@jspahrsummers when building an agent loop pre mcp, it was sometimes useful to do tool selection before sampling. I guess you could kind of think of it as un-discovering the tools that were not relevant in the current thread. Do you anticipate an analogous requirement that impacts the mcp spec? |
Beta Was this translation helpful? Give feedback.
-
Pre-submission Checklist
Discussion Topic
Is there any guidance for how to avoid tool function name collisions? I note that the current GDrive tool exports a function called "search":
https://github.com/modelcontextprotocol/servers/blob/0e7d79c580da693091e7e9711a69132e85eb47c1/src/gdrive/index.ts#L133
which is HIGHLY likely to cause a collision down the road, haha. A related issue is that generic function names are likely to confuse your agent when they are mixed together. All the "search_file", "get_data", etc... functions are likely to only work reliably if your agent has that single tool attached.
My understanding is that function calling protocol at the moment doesn't support namespaces, so in the interim perhaps just providing guidance like:
would be a way to help ensure that tools can be used together by agents.
Beta Was this translation helpful? Give feedback.
All reactions