Yes, this is something you'll be able to implement the middleware functionality that's on our roadmap.
MCP also has an upcoming feature called Elicitation that you might find interesting: https://modelcontextprotocol.io/specification/draft/client/e...