Generate metadata for generated rpc functions