MCP is the answer but it's only really worth it if you product is reasonably complex e.g. n8n has a community MCP fully for this reason.
Which was at least fun for a bit although I failed to really see the use after models became better at designing themselves.