The output should then also be able to break the name down into its 3 parts and show the definitions for each word.
A random generator should be able to do this easily, dozens of sites exist that have done this for years at this point. The fact that I can ask your site to deserialize JSON input when it’s for dragon name generation seems odd. Like it should not do that, but because it uses an LLM you would have to jump through the hoops to sanitize that input.