Interesting... what is the use case for the AI that is querying it? Is it how to develop additional features for integration with your app or do you have some other use case? Code review/audit/debugging/etc. For AI developing against an API I would think an OpenAPI json file would do the trick.
Is the Roslyn method called as part of the build/publish?