this post was submitted on 16 May 2026
180 points (98.9% liked)
Programming Humor
3428 readers
70 users here now
Related Communities !programmerhumor@lemmy.ml !programmer_humor@programming.dev !programmerhumor@kbin.social !programming_horror@programming.dev
Other Programming Communities !programming@beehaw.org !programming@programming.dev !programming@lemmy.ml !programming@kbin.social !learn_programming@programming.dev !functional_programming@programming.dev !embedded_prog@lemmy.ml
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
If I were to design this, and I do indeed do stuff like this for a living, I would have the AI only able to compose just the query, but not handle the results, my API itself would actually perform the query and return the results.
This would ensure the AI cannot "muck up" the results with fake data. Its only job is just to compose the query and confirm it works.
So I would construct a set of MCP tools it can use to:
Which actually would not be terribly hard to implement, maybe 1 week of work if Im just making an internal "to be used by our own people" type of tool that doesnt have to be super pretty, just a simple dashboard where they punch in their prompt, which then gets put in a queue, and then the get notified when the LLM has finished and returned the results to them, which they can then download as a CSV or some shit.
Easy peasy and an example of actually using these tools in a sane way.
I would never have something like this be outward "client" facing public though, this stuff would be reserved for internal use.
Yup that's similar what I do sometimes. My general idea was always write a simplified example, prove it works, ask Ai to add in whatever complexity was needed based on my example, prove that works, release for internal use.