MCP tools returning and interactive command

I’m building an mcp and one of my tools it mean to generate a command and I’m already returning the correct object to generate a command but the llm is not being able to handle to generate the interactive run command in the chat UI.