u/Dorsun

▲ 1 r/mcp

llm call inside a tool?

we want to add a new tool in our company mcp server

currently the idea is to have the tool get a the last prompt (or a summary of the recent conversation) from the calling agent and some other params

and have the mcp tool to create a sql using a llm call and a list of table columns

I wanted to know whether to have llm calls inside a tool is good idea?

maintainability-wise or testing-wise and such

reddit.com
u/Dorsun — 24 days ago